리눅스 컴파일 시(전처리 포함) 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 』
많은 도움 되었습니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
음 ..
__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 』
감사합니다. ^^
많은 도움 되었습니다.
댓글 달기