tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] It is possible to output assembler code with TCC?


From: Barath Aron
Subject: Re: [Tinycc-devel] It is possible to output assembler code with TCC?
Date: Thu, 25 Jul 2019 19:25:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2

Yes. There are a lot of tools to disassemble the output. "objdump" works on almost Linux distros and even on windoz via mingw or msys or cygwin.
TCC has an internal assembler and linker.

tcc -c stuff.c && objdump -D stuff.o

Aron


On 7/25/19 3:16 PM, Zsolt Kántor via Tinycc-devel wrote:
I want to see if using the register keyword a particular variable value goes 
into a register.
In the online documentation I read that you can output object code, but I did 
not saw if assembler code can be generated.
If assembler code can not be generated with TCC, how can I check if a variable 
value goes into a general purpose register?
Maybe output object code and disassemble it?

Thank you,
Zsolt

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]