Re: C Bootloader Experiment
Posted: Sun Aug 24, 2008 8:47 am
Yeah I meant that it is 16bit code using 32bit registers and I´m looking for a way to get gcc to use 16bit registers.
The Place to Start for Operating System Developers
http://f.osdev.org/
I find a small macro like this very useful:Couldn't you just inline them, like: (From the GCC manual.)Code: Select all
inline void foo (const char) __attribute__((always_inline));
Code: Select all
#define INLINE_FUNCTION(_decl) \
static inline _decl __attribute__((always_inline)); \
_decl
Are you going to be running the code on a <= 286 processor?FlashBurn wrote:Yeah I meant that it is 16bit code using 32bit registers and I´m looking for a way to get gcc to use 16bit registers.