Object file conversion

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Object file conversion

Post by mathematician »

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.
The continuous image of a connected set is connected.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Object file conversion

Post by Love4Boobies »

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.
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.
Erm... you know, there's GCC...
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Re: Object file conversion

Post by mathematician »

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.
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.
Erm... you know, there's GCC...
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.
The continuous image of a connected set is connected.
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Object file conversion

Post by JohnnyTheDon »

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.
Whoa, flamebait. You might want to be careful throwing things like that around, there are a lot of linux users on this forum.
it can only be used with something like Cygwin, and I don't particularly want to make Windows look like 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).
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Re: Object file conversion

Post by mathematician »

JohnnyTheDon wrote:
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.
Whoa, flamebait. You might want to be careful throwing things like that around, there are a lot of linux users on this forum.
it can only be used with something like Cygwin, and I don't particularly want to make Windows look like 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).
Well I'm only really writing it for my own amusement. In any case, C is C, no matter what the compiler.
The continuous image of a connected set is connected.
Post Reply