For me, with current tcc mob (but also with version at least 6 months
old) this does work: tcc hello.c -l c
Which version did you try?
As for -O, it seems that the option-argument is optional - in both
tcc and gcc. The posix syntax for optional arguments is that the
value must follow at the same
An alternate and maybe easier solution is to add a c99 (POSIX) shell script in
tcc repository that handles all c99 option and forward them to tcc supported
syntax (e.g. "-O2" => -O2 but also "-O 2" => -O2)
-Original Message-
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange..
Hello John,
I like very much the idea to make tcc POSIX compliant. I still work on C/C++
normalization in AFNOR group and worked on different groups including ISLISP
and POSIX, so standards matter for me :).
Please, also consider that neither gcc nor clang support space after -O:
$ clang -O 3
Hi,
I was checking if tcc conforms to the POSIX standard for a C99 compiler [1],
particularly to make the case for implementing a generic POSIX C compiler
backend in Meson [2]. In the meantime, tcc can't be used for building. There
is concern that small compilers all have their own caveats, and