On the Wiki there is a comment to the effect that Visual C can be used in OS development; the only problem being that it produces PE files. However there is a utility here, called objconv, which could solve that problem.
http://www.agner.org/optimize
I have only just found it, so I haven't tried it yet. Personally, the lack of a 64 bit Windows compiler which can create ELF files is the only reason I would even think of programming under Linux.
Object file conversion
- mathematician
- Member
- Posts: 437
- Joined: Fri Dec 15, 2006 5:26 pm
- Location: Church Stretton Uk
Object file conversion
The continuous image of a connected set is connected.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Object file conversion
Well it's not really a problem developing an OS with PE instead of ELF. It's just that most people prefer ELF because of GRUB.
Erm... you know, there's GCC...mathematician wrote:I have only just found it, so I haven't tried it yet. Personally, the lack of a 64 bit Windows compiler which can create ELF files is the only reason I would even think of programming under Linux.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
- mathematician
- Member
- Posts: 437
- Joined: Fri Dec 15, 2006 5:26 pm
- Location: Church Stretton Uk
Re: Object file conversion
I would prefer ELF because it strikes me as being easier to write a loader for it, and Microsoft's documentation of PE isn't as clear as it might be. Yes I have heard of gcc, but it can only be used with something like Cygwin, and I don't particularly want to make Windows look like Linux. The ideal would be Watcom, if only they would release a 64 bit version.Love4Boobies wrote:Well it's not really a problem developing an OS with PE instead of ELF. It's just that most people prefer ELF because of GRUB.
Erm... you know, there's GCC...mathematician wrote:I have only just found it, so I haven't tried it yet. Personally, the lack of a 64 bit Windows compiler which can create ELF files is the only reason I would even think of programming under Linux.
The continuous image of a connected set is connected.
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: Object file conversion
Whoa, flamebait. You might want to be careful throwing things like that around, there are a lot of linux users on this forum.Personally, the lack of a 64 bit Windows compiler which can create ELF files is the only reason I would even think of programming under Linux.
IIRC you can make a cross-compiler gcc without cygwin. Is there any reason you need to use the Visual C compiler for your OS? It makes it much harder for anyone else to compile your OS and test it (though you could release it in binary form only).it can only be used with something like Cygwin, and I don't particularly want to make Windows look like Linux.
- mathematician
- Member
- Posts: 437
- Joined: Fri Dec 15, 2006 5:26 pm
- Location: Church Stretton Uk
Re: Object file conversion
Well I'm only really writing it for my own amusement. In any case, C is C, no matter what the compiler.JohnnyTheDon wrote:Whoa, flamebait. You might want to be careful throwing things like that around, there are a lot of linux users on this forum.Personally, the lack of a 64 bit Windows compiler which can create ELF files is the only reason I would even think of programming under Linux.
IIRC you can make a cross-compiler gcc without cygwin. Is there any reason you need to use the Visual C compiler for your OS? It makes it much harder for anyone else to compile your OS and test it (though you could release it in binary form only).it can only be used with something like Cygwin, and I don't particularly want to make Windows look like Linux.
The continuous image of a connected set is connected.