C: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
m (fixed links)
(add link)
Line 25: Line 25:
Other functions, such as loading the Global Descriptor Table (on the IA32 architecture), also require special opcodes which are not available within C language (but can be implemented in InlineAssembly). In the (unlikely) case your compiler does not support inline Assembly, you have the option of writing 'support functions' in a separate assembly file. Note that we have a page with SampleInlineFunctions for basic operations using GCC.
Other functions, such as loading the Global Descriptor Table (on the IA32 architecture), also require special opcodes which are not available within C language (but can be implemented in InlineAssembly). In the (unlikely) case your compiler does not support inline Assembly, you have the option of writing 'support functions' in a separate assembly file. Note that we have a page with SampleInlineFunctions for basic operations using GCC.


Interrupt Service Routines (ISRs) also require some special handling, because they are called directly by the CPU, not by the C environment.
[[Interrupt Service Routines]] (ISRs) also require some special handling, because they are called directly by the CPU, not by the C environment.
Retrieved from "https://osdev.wiki/wiki/C"