#define FLAG 1
#if defined FLAG
#define STR "haha"
#else
#define STR "hoho"
#endif
위 코드와 같이 쓰면 FLAG에 1이 아닌 어떤 값이와도 STR에 haha문자열만 define되고
hoho문자열을 define하고 싶으면 #if defined FLAG가 아니라 #if FLAG로 써야되잖아요~
#if는 참,거짓을 구분하고, #if defined는 define되었는지 여부를 체
처음 책에 있는데로 arm-linux-gcc, gcc 3.x, qemu, gumstix 다깔았습니다. 컴파일 다해서
u-boot.bin파일 나왔구요...
근데.. 이 파일을 실행 시키니까
[root@KKM gumstix_uboot]# /usr/bin/qemu-system-arm -M connex -pflash u-boot.bin -nographic
qemu: fatal: Trying to execute code outside RAM or ROM at 0x01000000