[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Mysterious tcc behavior: why does 0.0 takes 12 bytes
From: |
Jesse Liley |
Subject: |
Re: [Tinycc-devel] Mysterious tcc behavior: why does 0.0 takes 12 bytes when NOT long double? |
Date: |
Thu, 26 May 2005 17:31:32 +1200 |
On 5/26/05, David A. Wheeler <address@hidden> wrote:
> TEST 1:
> First, here's a trivial program you can compile with tcc 0.9.22:
>
> main() {
> printf("First");
> double a = 0.0;
> printf("Second");
> }
thats violating c syntax, you're supposed to declare variables before
code inside curvey brackets {}
Also main is supposed to be declared "int main(int argc, char
*argv[])", and actually return a value.
Is the odd behaviour still there after the test case is syntactically correct?
(personally I think theres lots of lurker bugs and you've probably found one)
e.g.:
int main(int argc, char *argv[]) {
double a;
printf("First");
a = 0.0;
printf("Second");
return 0;
}
Jesse