[Top][All Lists]

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

Re: [Tinycc-devel] How to optimize compiling sizeof const?

From: grischka
Subject: Re: [Tinycc-devel] How to optimize compiling sizeof const?
Date: Fri, 01 Aug 2014 11:01:57 +0200
User-agent: Thunderbird (Windows/20090812)

YX Hao wrote:

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:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]