I'm currently developing my own Operating System known as the ArkOS. Until now, I've been placing all of my assembly functions into my bootloader and just linking them using GCC. I've started on the interrupt handling which, needless to say, requires a lot of coding.
A general layout of the boot.S file:
Multiboot Header
Reserve Stack For Initial Thread
Kernel Entry Point
Page Setup
Page Enable
GDT Enable
IDT Setup
Interrupt Service Routines
.global isr0-isr31
isr0-isr31:
cli; push 0-31; push 0-31; jmp isr_common_stub
ISR Common Stub
Can I expect any sort of performance hit from appending functions to my bootloader? Also, what would be the proper/correct way of doing this? Would I want all of my assembly in one file as it is, or should I use inline asm, or separate asm files?
Thanks in advance.
edit: Basically if I have one file of asm containing a list of functions will it see a performance increase if I break up that file into other smaller asm files.