Re: [Tinycc-devel] preprocessor makes attributes disappear

2018-04-06 Thread Michael Matz
Hi, On Fri, 6 Apr 2018, ra...@airmail.cc wrote: I tried modifying my test program to use __attribute instead, in that case the code line 3345: case TOK_ALIGNED2: is being executed which is good. but again the output is not zeros. Perhaps a.aligned is being ignored for functions during codegen

[Tinycc-devel] A slang interpreter that initializes tcc.

2018-04-06 Thread Ag, D.E Chatzimanikas
On Tue, Mar 27, at 06:06 KHMan wrote: > > Have fun, happy hacking. Thanks, your wish it was quite a bit of help. https://github.com/agathoklisx/slang-devel/tree/master/interp/sli_tcc.c This is now a fully functional slang interpreter, but it initializes slang with a more abstracted way. That me

Re: [Tinycc-devel] preprocessor makes attributes disappear

2018-04-06 Thread rain1
On 2018-04-06 20:13, Michael Matz wrote: Hi, On Thu, 5 Apr 2018, ra...@airmail.cc wrote: I made this test program which I expect to print all 0's, but it doesn't. I noticed that after tcc -E the attributes have all disappeared. Any idea what is stopping this from working? the attribute is

Re: [Tinycc-devel] The built-in memory and bounds checker cannot handle mmap'd memory and judges errno wrong

2018-04-06 Thread Michael Matz
Hi, On Fri, 6 Apr 2018, George Gaarder wrote: I just tried -b to see whether I forgot to free something, and I found that the memory and bounds checker will alert when I use the memory I mmap'd. Whi le I was writing a demo for report, I found that the checker also reported o ut of region when

Re: [Tinycc-devel] preprocessor makes attributes disappear

2018-04-06 Thread Michael Matz
Hi, On Thu, 5 Apr 2018, ra...@airmail.cc wrote: I made this test program which I expect to print all 0's, but it doesn't. I noticed that after tcc -E the attributes have all disappeared. Any idea what is stopping this from working? the attribute is documented and code gen seems to respect T