|
From: | grischka |
Subject: | Re: [Tinycc-devel] How to optimize compiling sizeof const? |
Date: | Fri, 01 Aug 2014 11:01:57 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
YX Hao wrote:
Hi, I mean just Ramsay Jones wrote.the expression: sizeof("a string literal") was causing an _unused_ copy of the string literal to be stored in the data section. This expression is a compile-time constant and, once it has been evaluated, the string literal is no longer required (even at compile time).-----------^^^^^^^-------- Here, may be you are right, I don't know that. I think the string is useless to store into a compiled file.
I think I fixed that: http://repo.or.cz/w/tinycc.git/commitdiff/14745bdeb735d565b7589ba6032abd755267c850 --gr
[Prev in Thread] | Current Thread | [Next in Thread] |