Btw. there was a related patch here:
John wrote:
"... Added some functions to retrieve information about declared
symbols, struct definitions, and values of object-like macros.
Please see libtcc.h and libtcc_test.c to get an idea about how to
use these."
http://lists.gnu.org/archive/html/tinycc-devel/2013-08/msg00019.html
http://lists.gnu.org/archive/html/tinycc-devel/2013-08/msg00020.html
---gr
Dmitrij K wrote:
Dear Thomas.
Could you a tip me:
How can I iterate stack (global) variables and extract from there
names/flags/values of variables ?
PS: I get error `incomplete type' if I am adding float/double vars into cstring
(for call `tcc_compile_string')
--
The best regards.
Date: Tue, 22 Oct 2013 21:43:41 +0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Tinycc-devel] How to get var and its type by executed c-string ?
Le Sun, 20 Oct 2013 18:55:03 +0000,
Dmitrij K <[email protected]> a écrit :
I am sorry too .. =(
Here is a little proc-helper by me:
(but would better if tcc keeps it for stack vars as native)
[SNIP CODE]
Yeah, this is more or less what the not exported type_to_str function
does.
Thanks for sharing your code snippet. That might be useful to people in
the same situation as you.
Best regards,
Thomas Preud'homme
------------------------------------------------------------------------
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel