apps,hello: display ISA info

This commit is contained in:
Zihao Yu 2019-02-10 14:29:14 +08:00
parent d9d06c8a03
commit f4536e62a7
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ ISA_DEF = __ISA_$(shell echo $(ISA) | tr a-z A-Z)__
INCLUDES = $(addprefix -I, $(INC_DIR)) -I$(AM_HOME)/am/
INCLUDES += -I$(AM_HOME)/am/arch/$(ARCH)/include
CFLAGS_COMMON += -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) \
CFLAGS_COMMON += -O2 -MMD -Wall -Werror -ggdb $(INCLUDES) -D$(ISA_DEF) -D__ISA__=\"$(ISA)\" \
-fno-builtin -fno-stack-protector
CFLAGS += -std=gnu11
CXXFLAGS += -std=c++11 -ffreestanding -fno-rtti -fno-exceptions

View File

@ -7,7 +7,7 @@ void print(const char *s) {
}
int main() {
for (int i = 0; i < 10; i ++) {
print("Hello World!\n");
print("Hello World from a(n) " __ISA__ " program!\n");
}
return 0;
}