tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] char points and char array


From: 龟腚
Subject: [Tinycc-devel] char points and char array
Date: Thu, 24 Dec 2009 09:58:50 +0800

hi, i use tinyCC because it claim it as a ansi C compiler
but i found a act which not abey the ansi C rules
like 

char *s='hello,world';
*(s+2) = '\0';

which in ansi C are not allowed cause *s is consider as read only
and i compile the code with gcc it show me segment error while running
but tcc accept this act
btw,how to generate the asm code using tcc?

--
welcom to gtalk me
http://hi.baidu.com/jyf1987

reply via email to

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