I tried to compile the J interpreter [1] with tcc. This interpreter uses
a metric fucktonne of macros and generally puts a lot of stress on the
compiler and preprocessor. I am using the most recent mob branch version
(release_0_9_26-326-gff783b9). tcc crashes on files vbang.c and vz.c
with the following messages:

vbang.c:
tcc: x86_64-gen.c:495: load: Assertion `(v >= TREG_XMM0) && (v <=
TREG_XMM7)' failed.
Aborted (core dumped)

vz.c
tcc: x86_64-gen.c:495: load: Assertion `(v >= TREG_XMM0) && (v <=
TREG_XMM7)' failed.
Aborted (core dumped)

furthermore, it fails to compile the files p.c and x15.c. gcc and clang
have no problems compiling the project. The error messages are
reproduced below:

p.c:99: error: ')' expected (got ",")
x15.c:845: error: initializer element is not computable at load time

Please have a look at these issues. If you like, I can try to track them
down on my own but I'm not familiar with the tcc source code.

Yours sincerely,
Robert Clausecker

[1]: https://github.com/openj/core


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to