
I had to compile a 32-bit application using GNU gcc on the 64-bit version Linux.
Luckily gcc man page directed me to -m32 and -m64 option. These options generate code for a 32-bit or 64-bit environments.
=> The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on [...]
>
Read More... |
Digg This!

Recently my friend highlighted something that can be use to examining gcc complier behavior.
You can pass following options to gcc
-v : Display the commands executed to run the stages of compilation on screen.
-x language : I am using C
/dev/null : Use /dev/null as input file
For example when I type the following command:
gcc -v -x c [...]
>
Read More... |
Digg This!

IBM Developer works has published a simple howto/guide that will gain you a quality knowledge while exploring your UNIX system.
FTA, “…Programming a UNIX system can be fun as well as educational. With the UNIX strace tool and GDB, the GNU Project Debugger, you can really dig deep into the functionality of your system and learn [...]
>
Read More... |
Digg This!