Archive for October, 2005

Generate Assembly codes from C

Sunday, October 16th, 2005

I was searching for a way to generate assemly codes from C codes for one of my projects.

I was looking for a tool which would create assembly codes from binary codes that were created using a compiler like gcc.

Looks like Life is much simpler. I made the discovery that there is a switch to gcc which directly created assembly codes from C codes.

The switch is -S.
syntax gcc -S program .c and you will get program.s in assembly

I tried the same with arm-linux-gcc, the cross-compiler for arm-architecture and it works there too!

Long live gcc

print “Hello World!\n”;

Saturday, October 15th, 2005

Good day !

As you may have guessed from the title, I am a Computer Scientist. I created this website to serve both a personal blog and also as a repository of knowledge. Yes, Shruta means Knowledge in Sanskrit, one of the ancient languages in India. Click here to know more about Sanskrit.

That said, I am not an avid blogger, at least not yet !
However, I do hope you will find some parts of my website useful to you !