Liste des Groupes | Revenir à cl c |
Em 12/15/2024 8:28 AM, bart escreveu:ThOn 15/12/2024 03:05, Thiago Adams wrote:It will have to be configured to x86 or x64. It has to match the target/ platform compiler settings. The online versions is emulating something. I think x86 gcc on linux.>>
I am working on a C backend that generates simple C code.
>
You can test it here:
http://thradams.com/cake/playground.html
>
Objective
- Shift all the complexity of the C compiler to the frontend.
Why? This approach simplifies having one frontend and multiple backends.
- Use C as an intermediate language to feed a backend (any C compiler can act as the backend).
The backend can then focus solely on code generation.
- Code is not portable
>
Removed C89 Features
- Preprocessor
- sizeof
If I try:
>
printf("%zu\n", sizeof(void*));
>
it turns into:
>
printf("%zu\n", 4U);
>
Presumably this translator will only target 32-bit systems even if run on a 64-bit one?
>
Les messages affichés proviennent d'usenet.