|
From: | grischka |
Subject: | Re: [Tinycc-devel] How to get var and its type by executed c-string ? |
Date: | Fri, 25 Oct 2013 18:22:56 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
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: address@hidden To: address@hidden CC: address@hidden 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 <address@hidden> 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 address@hidden https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |