TCC: Difference between revisions

Jump to navigation Jump to search
386 bytes added ,  14 years ago
m
no edit summary
[unchecked revision][unchecked revision]
mNo edit summary
Line 1:
{{In Progress}}
 
ThisThe purpose of this article describesis to explain how to make a sample ELF kernel with [[FASM]] and [[TCC|Tiny C Compiler]] (aka TCC).
TCC is a small and fast C compiler, which produces x86, x86_64 or ARM code, and generates PE or ELF executables.
TCC is heading toward full ISOC99 compliance, and can compile itself, like FASM. Here are all features of TCC:
* TCC compiles C code about 9 times faster than GCC.
* TCC generates averagely optimized x86 code.
* TCC supports the ISO C99 standard (even if this support is not as complete as PCC).
* Under Linux, TCC can be used as a C interpreter (just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line).
* TCC has few dependencies. Only libc is required for its compilation.
* TCC includes also a linker and an assembler (onlyfor x86 only). But this assembler is limited: no
 
TCC includes also a linker and an assembler (only x86). But this assembler is limited: no
16/64-bit support, instructions up to MMX are supported.
 
==A small kernel example==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu