On Sunday, July 5, 2020, 01:16:12 AM GMT+3, John Scott <jscott@posteo.net> wrote:
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 tinycc's seem
minor.
POSIX says a space after -l—and all flags for that matter—is okay, but tcc
doesn't accept this:
$ tcc hello.c -l c
tcc: error: library '' not found
It also doesn't handle a space after -O. Fortunately -D, -I, -L, and -U all
tolerate this.
For completeness here's another discrepancy:
* tcc errors with -lxnet or -ltrace, but so do gcc and Clang.
Please let me know if there's anything I can do to help, and thanks for
working on tinycc!
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/tinycc-devel