Commit Graph

39 Commits

Author SHA1 Message Date
Zihao Yu f4536e62a7 apps,hello: display ISA info 2019-02-10 14:29:14 +08:00
Zihao Yu 0f0b9b9f42 add riscv32-nemu 2019-01-30 17:44:56 +08:00
Zihao Yu 7f95530abf Makefile.compile: remove -fno-strict-aliasing for mips32 2019-01-30 17:39:32 +08:00
Zihao Yu 7a4f70c4df Makefile.compile: fix not begin with _start()
* without -fno-reorder-functions, x86-navy may place other functions at
  the beginning of the object file, but nanos-lite requires _start() to be
  the first function, else the loader can not find the correct entry
2018-12-28 08:56:35 +08:00
Zihao Yu 873c0a3685 Makefile.compile: refactor CFLAGS 2018-10-12 10:31:37 +08:00
Zihao Yu ceb4e19450 Makefile.compile: remove riscv* 2018-09-08 03:17:42 +08:00
Zihao Yu b47e498737 am: refactor navy
* basic one is x86-navy
* add another navy with differential ISA by symbolic link to x86-navy
2018-09-08 03:05:20 +08:00
Zihao Yu ff68839318 am: add x64-navy 2018-09-03 21:40:27 +08:00
Zihao Yu 90a1a94f51 Makefile.compile: use gnu11 to compile native
* with c11, gcc will report the following error:
  /usr/include/sys/ucontext.h:238:5: error: unknown type name ‘stack_t’
2018-08-14 13:40:01 +08:00
Yanyan Jiang f41dc1cf56 code refactor, using -std=c11 2018-08-11 02:48:46 +00:00
Yanyan Jiang bc1a5588c4 code refactors 2018-08-09 06:21:37 +00:00
Zihao Yu 7e5e45afd0 Makefile.compile: generate PIE for native
* In this way, OS will load native programs to high virtual address.
  This makes it possible for native AM to use low virtual address.
2018-04-04 10:04:06 +08:00
Zihao Yu d163993adb Makefile.compile: do not echo submake commands 2017-08-12 15:59:26 +08:00
Zihao Yu 981cf692e6 Makefile: output short message while compiling/linking 2017-08-12 15:58:53 +08:00
Zihao Yu 134d5c1042 Makefile.compile: only one klib target 2017-08-12 15:55:44 +08:00
Allen 7f81a68a9e Merge branch 'riscv32-emu' of https://git.njuics.cn/syslab17/nexus-am into riscv32-emu 2017-08-06 11:26:55 +08:00
Allen dc66ef0222 Implemented riscv32-emu Turing machine.
1. passed cputests.
2. Changed char to signed char in cputest/tests/movsx.c.
2017-08-06 11:17:48 +08:00
Zihao Yu 3cfde6d300 apps,nanos-lite,loader: use fs api to load the first prog 2017-08-03 23:59:53 +08:00
Yanyan Jiang 23cb0c924a Merge branch 'g++-version' into 'master'
Makefile: do not provide the version of gcc/g++

See merge request !127
2017-07-29 13:06:13 +08:00
Zihao Yu 048056d5b9 Makefile: do not provide the version of gcc/g++
* debian 9 uses gcc/g++-6
* install g++-mips-linux-gnu, then the mips-linux-gnu-g++ will point to
  g++ with a version number
2017-07-29 12:39:34 +08:00
Zihao Yu 4c98ba485f Makefile: add objcopy 2017-07-29 12:10:30 +08:00
Yanyan Jiang 2e192b5366 Merge branch 'no-stringop' into 'master'
Makefile.compile: do not generate string operations for x86

See merge request !108
2017-07-11 18:46:39 +08:00
Zihao Yu b03f418fe6 Makefile.compile: do not generate string operations for x86 2017-07-11 17:17:47 +08:00
Wang Huizhe e8df467b98 build: forbid compiler to insert unexpected putchar/puts 2017-07-07 20:53:04 +08:00
Yanyan Jiang f3ab1c7540 Merge branch 'makefile' into 'master'
Makefile: propagate -j option to submake

See merge request !101
2017-07-04 19:12:29 +08:00
Zihao Yu c97d9e541b Makefile: propagate -j option to submake 2017-07-04 19:04:00 +08:00
Zihao Yu 73596f368c am: add riscv64-rocket 2017-07-04 19:01:51 +08:00
Yanyan Jiang dc94fb9266 Merge branch 'fno-pic' into 'master'
Makefile.compile: add -fno-pic to x86 CFLAGS

See merge request !91
2017-06-27 18:57:50 +08:00
Zihao Yu 74bb7e03c2 Makefile.compile: add -fno-pic to x86 CFLAGS
* debian 9.0 enbale PIC for -m32 by default
2017-06-27 15:05:23 +08:00
Yanyan Jiang 78628b978b makefie, add -D__ISA_XX__ 2017-06-19 09:24:34 -04:00
yzh da51267c04 Makefile.compile: add -march=i386 while compiling to x86
* this can prevent generating instructions newer than i386,
  which makes NEMU easier to implement
2017-06-11 23:08:21 +08:00
yzh 7383874427 Makefile.compile: rename REAL_ARCH to ISA
* this matches the description in SPEC.md
2017-06-05 23:24:59 +08:00
Yanyan Jiang 7544e52856 refactor makefile 2017-06-02 08:40:03 -04:00
yzh dd6bdc63a4 Makefile: use -MMD instead of -MD
* -MMD will not generate system header files
2017-05-30 13:18:14 +08:00
yzh af942ffa34 Makefile.compile: refactor ARCH
* split ARCH into REAL_ARCH and PLATFORM
  * the same REAL_ARCH shares the same arch-dependent flags
  * different PLATFORM of the same REAL_ARCH may have some different flags
2017-05-30 13:10:04 +08:00
bingo edb74abb35 add compile option in arch mips32-minimal 2017-05-30 11:40:00 +08:00
Yanyan Jiang ec6f9cdbe2 distribute makefile to each dirs 2017-05-21 11:22:51 -04:00
Yanyan Jiang 51d5e300f3 standalone makefile works 2017-05-21 10:10:24 -04:00
Yanyan Jiang 564f5f3dcf move out makefile 2017-05-21 09:17:11 -04:00