Is it okay to build an i686-pc-gcc to build my kernel?
Posted: Wed Jun 08, 2016 2:59 am
I am planning something very interesting here:
I intend to build a multiboot kernel that also supports booting via the MZ stub on a real mode DOS environment and also functions in UEFI, as well as rejecting DOS emulation and displaying a dialog in Windows telling the end user: "Boot via a win32 environment is not allowed, please reboot." with a "Reboot" button and a "Cancel" one. and the icon being my OS logo. if attempted to execute the kernel directly in my OS when stable, it will passively do nothing.
I intend to use the PE executable format in the OS as well.
So, I ask, do I really need a cross compiler that builds ELF format when I don't want ELF? Can't I just build a i686-pe-gcc instead and borrow windres from mingw for compiling the resource section (needed for dialog resource, icons, and string table)?
I intend to build a multiboot kernel that also supports booting via the MZ stub on a real mode DOS environment and also functions in UEFI, as well as rejecting DOS emulation and displaying a dialog in Windows telling the end user: "Boot via a win32 environment is not allowed, please reboot." with a "Reboot" button and a "Cancel" one. and the icon being my OS logo. if attempted to execute the kernel directly in my OS when stable, it will passively do nothing.
I intend to use the PE executable format in the OS as well.
So, I ask, do I really need a cross compiler that builds ELF format when I don't want ELF? Can't I just build a i686-pe-gcc instead and borrow windres from mingw for compiling the resource section (needed for dialog resource, icons, and string table)?