Figure out how we support real realmode codegen #2

Open
opened 2025-05-06 18:16:12 +02:00 by mai-lapyst · 0 comments
Owner

Currently the code generated by the rust target for the bootsector of bios boots is using size prefixed 32bit instructions to work in 16bit CPU mode. This should be changed.

For this there are two ideas:

  • Post processing the rust output (either by asking it to output asm and just rewriting that or by byte juggeling)
  • Changing LLVM to emit true 16bit code when asked nicely (or not-so-niecely)
Currently the code generated by the rust target for the bootsector of bios boots is using size prefixed 32bit instructions to work in 16bit CPU mode. This should be changed. For this there are two ideas: - Post processing the rust output (either by asking it to output asm and just rewriting that or by byte juggeling) - Changing LLVM to emit true 16bit code when asked nicely (or not-so-niecely)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: chalk-os/rustboot#2
No description provided.