Re: Any way to output variable names with their size (i.e. int, char and etc.)

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

 



On 10 January 2014 14:45, shall890 wrote:
> Hello,
>
> I am wanting to extract variable names and their size (int, char and etc.)

Those are types, not sizes.  A variable's type is a property of the
source code, the size of that type depends on the compiler and target
platform.

> from a c file.  Is there any way to extract that type of information?

You could compile it and look at the debug info. Or write a GCC plugin
to output the info as the file is compiled.  There are probably better
ways too.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux