Solution needed for building a static IDT and GDT at assemble/compile/link time
问题 This question is inspired by a problem many have encountered over the years, especially in x86 operating system development. Recently a related NASM question was bumped up by an edit. In that case the person was using NASM and was getting the assemble time error: shift operator may only be applied to scalar values Another related question asks about a problem with GCC code when generating a static IDT at compile time that resulted in the error: initializer element is not constant In both