Hi Everyone,
I'm trying to assemble a project of mine using tcc (the idea of a tiny c compiler fits perfectly with the project). The project is in x86_64 assembly, and tcc is refusing to accept constant character such as: $'A.
According to the GNU as documentation, the way to define a constant character is by adding a single quote before the character (
https://sourceware.org/binutils/docs/as/Constants.html). After some quick testing, I noticed tcc only accepts a quote before and one after the character, like the C compiler ('A').
As an example, the attached file fails with:
basename.S:62: error: missing terminating ' character
If DIR_SEPARATOR is defined to '/', instead, it will assemble under tcc.