webassembly icon indicating copy to clipboard operation
webassembly copied to clipboard

How to force a standard for compilation?

Open max-carriers opened this issue 5 years ago • 1 comments

What can I do if I need to force a standard to compile the c code to webassembly? I'm trying to compile it with the C90 Ansi standard, and I have no clues about the one used by the compiler of this module

max-carriers avatar Nov 03 '20 16:11 max-carriers

The only solution I found so far is to try to compile the code with the "gcc" compiler and see if anything goes wrong, then if everything is ok I recompile it to webassembly.

To be clear, the command I'm using to compile the code with gcc is:

gcc -ansi -pedantic main.c -Wall

max-carriers avatar Nov 03 '20 16:11 max-carriers