V
V
VioletGiraffe2019-03-14 23:07:39
assembler
VioletGiraffe, 2019-03-14 23:07:39

What toolchain can be used to write a simple bootloader in asm and C++ from under Windows?

I want to write a simple loader / bare metal application in asm (where necessary) and C++. I roughly figured out how it's done, but here's a snag: I want to develop on Windows, and all the more or less fresh info on the Internet only shows how it's done on Linux. I can't google anything. For example, the C++ MS compiler has the /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER flag, but there is no information, examples, and it's not even clear if this is what I'm looking for. Help with advice, please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2019-03-14
@jcmvbkbc

What toolchain can be used to write the simplest loader in asm and C ++

You need to understand in what format you want to get the final executable code. After that - how to get it in this format.
I won't say anything about the tools from M$, because I haven't used them for a long time, and when I used them, I had a feeling of some ... underdocumentation. But under Windows, it is quite possible to build code with the GNU toolchain - in the form of mingw, cygwin or Linux code from under WSL. The gnu toolchain has the objcopy utility, which can be used to convert the format of the code representation in a wide range.

V
ValdikSS, 2019-04-03
@ValdikSS

Are you talking about a UEFI bootloader? EFI applications are supported by Visual Studio as far as I know.
You won't write an MBR-loader in C++, only some late stage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question