How to make gcc -S generate hexadecimal values, not decimal

Robert Pluim rpluim@bigfoot.com
Fri Oct 1 00:00:00 GMT 1999


Alain Enout <enout@eurecom.fr> writes:

> Hello,
> 
> When using the -S option of gcc to generate assembly code, values seem to be
> decimal. This is very annoying, as my C code contains hexadecimal values :-).
> 
> Does somebody know how to make gcc -S generate hexdecimal values in the
> assembly code ? Or is there a tool which is aware of the assembly syntax
> that could do that ?
> 
> Thanks in advance.

Have you tried 'objdump -d'? That seems to produce hex.

Robert
-- 
The above are my opinions,
 and my opinions only.



More information about the Gcc-help mailing list