리눅스 컴파일 시(전처리 포함) 32비트 인지 64비트 인지 확인할 수 있는 방법이 있을까요?
윈도우 쪽에서는 구분할 수 있는 #define으로 정의된 상수가 있었던걸로 기억이 나는데요.. 혹시 리눅스에도 있는지 알고 싶습니다.
미리 감사드립니다.
__LP64__ 나 _LP64 로 구별하면 될 것 같네요.
__i386__ 이나 __x86_64__ 처럼 아키텍쳐별로 구별하는 방법도 있습니다.
http://sourceforge.net/apps/mediawiki/predef/index.php?title=Architectures
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
많은 도움 되었습니다.
음 ..
__LP64__ 나 _LP64 로 구별하면 될 것 같네요.
__i386__ 이나 __x86_64__ 처럼 아키텍쳐별로 구별하는 방법도 있습니다.
http://sourceforge.net/apps/mediawiki/predef/index.php?title=Architectures
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
감사합니다. ^^
많은 도움 되었습니다.