# Compiling for Marmalade SDK

This topic is 1879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, Andreas.
When I was compiling Angel Script with gcc-arm for using with the Martmalade SDK I have noticed that that compiler doesn't recognize comennts in c++ style in the as_callfunc_arm_gcc.S. At once I have removed all '//' and '/* */' all was compiled successfully. It is a feature of that compiler or maybe I have missed something?
It's slightly inconvenient to remove those comments every time after refreshing from git.

##### Share on other sites
Hi Papirosnik,

as far as I know Marmalade uses the original gcc compiler so I don't understand why it wouldn't understand the comments. The extension .S with the capital means that the assembler file should be preprocessed, and it is the preprocessor's task to remove the comments. It would seem that in your case the preprocessing step was skipped and it tried to compile the assembler code directly, as if the file had the extension .s (small letter).

Is the file downloaded with the correct extension, i.e. .S?

Perhaps you can check with the guys that develop Marmalade or ask in their forum for aid.

Let me know what you find out.

Regards,
Andreas

##### Share on other sites
Hi, Andreas.
As I said many times - I love AngelScript
2,25,2 is fine.
only there is another kind of warnings in case we are not using threads in marmalade:

1>d:\_prj\_thestack\src\age\3rd_party\angelscript\source\as_thread.cpp(75): warning C4390: ';' : empty controlled statement found; is this the intent? 1>d:\_prj\_thestack\src\age\3rd_party\angelscript\source\as_thread.cpp(81): warning C4390: ';' : empty controlled statement found; is this the intent? 1>d:\_prj\_thestack\src\age\3rd_party\angelscript\source\as_thread.cpp(87): warning C4390: ';' : empty controlled statement found; is this the intent? 1>d:\_prj\_thestack\src\age\3rd_party\angelscript\source\as_thread.cpp(93): warning C4390: ';' : empty controlled statement found; is this the intent?

It is such little trifle that we should not talk about it
But my love have to be perfect)))

##### Share on other sites
Thanks. I've fixed these warnings in revision 1485.

Regards,
Andreas