TCC: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
m (Bot: Replace deprecated source tag with syntaxhighlight) |
m (Bot: Replace deprecated source tag with syntaxhighlight) |
||
Line 23: | Line 23: | ||
4. Open Notepad or another text editor, and enter this: |
4. Open Notepad or another text editor, and enter this: |
||
< |
<syntaxhighlight lang="winbatch"> |
||
@echo off |
@echo off |
||
Line 96: | Line 96: | ||
:finished |
:finished |
||
</syntaxhighlight> |
|||
</source> |
|||
5. Save to tcc-0.9.26 with any name you want, but the extension MUST be .bat. If you use notepad, you will have to change the type from "Text Documents" to "All Files". |
5. Save to tcc-0.9.26 with any name you want, but the extension MUST be .bat. If you use notepad, you will have to change the type from "Text Documents" to "All Files". |
||
Line 253: | Line 253: | ||
TCC doesn't include stdint.h, but all typedefs required are provided in stddef.h. |
TCC doesn't include stdint.h, but all typedefs required are provided in stddef.h. |
||
To use stdint.h place the following code in your kernels include path as stdint.h. This will make your code compatible with both gcc and tcc. |
To use stdint.h place the following code in your kernels include path as stdint.h. This will make your code compatible with both gcc and tcc. |
||
< |
<syntaxhighlight lang="c"> |
||
/* stdint.h */ |
/* stdint.h */ |
||
Line 263: | Line 263: | ||
#include_next <stdint.h> |
#include_next <stdint.h> |
||
#endif |
#endif |
||
</syntaxhighlight> |
|||
</source> |
|||
[[Category:C]] |
[[Category:C]] |