apps,hello: display ISA info
This commit is contained in:
parent
d9d06c8a03
commit
f4536e62a7
|
@ -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 = $(addprefix -I, $(INC_DIR)) -I$(AM_HOME)/am/
|
||||||
INCLUDES += -I$(AM_HOME)/am/arch/$(ARCH)/include
|
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
|
-fno-builtin -fno-stack-protector
|
||||||
CFLAGS += -std=gnu11
|
CFLAGS += -std=gnu11
|
||||||
CXXFLAGS += -std=c++11 -ffreestanding -fno-rtti -fno-exceptions
|
CXXFLAGS += -std=c++11 -ffreestanding -fno-rtti -fno-exceptions
|
||||||
|
|
|
@ -7,7 +7,7 @@ void print(const char *s) {
|
||||||
}
|
}
|
||||||
int main() {
|
int main() {
|
||||||
for (int i = 0; i < 10; i ++) {
|
for (int i = 0; i < 10; i ++) {
|
||||||
print("Hello World!\n");
|
print("Hello World from a(n) " __ISA__ " program!\n");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue