Freestanding i386 target #7107
Ruan-pysoft
started this conversation in
Proposals
Replies: 1 comment 3 replies
|
Also nosing in this discussion: nothing against having that target, the more use-cases the language can support the merrier. I just find that maintainers are kinda overwhelmed right now so don't expect this to be merged asap I guess? hopefully you're lucky though |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was playing around today trying to do some basic kernel-level programming, initially following the Osdev Wiki's Bare Bones tutorial and then the plan was to get ps2 keyboard support up and hopefully I can make a nice demo program, similar to what I got up and running in C++, but in a language more suited to kernel development (and which I like more).
All was going well, however I found that there was no freestanding i386 target. There was i386 targets, like
linux_i386, as well as freestanding targets for the 64-bit instruction set likefreestanding_amd64_sysv, but nofreestanding_i386. Since I did have the compiler source downloaded, I quickly went nosing around there, and in the end I added it myself very easily, with just eight added lines, pretty much just registering the target with the compiler.And lo and behold, it works!
I'm a bit suspicious as to why it was such a simple change, so I'm not opening a pull request immediately; is there a reason why
freestanding_i386isn't already a supported target? Does each target perhaps need special attention and there's just nobody to look after it?If there is no reason for it not being a supported target, I'd be happy to open a pull request to add it :) (though I'll have to go shuffle around the location of
target_freestanding_i386so that it matches with how everything else is laid out in source first)All reactions