Thanks to GNU~!

作者尝试在Windows环境下使用VMWare搭建Linux虚拟机来开发纯平台独立的*nix引导加载程序,并分享了开发过程中遇到的问题及解决方案,包括使用GNU编译器在Windows上生成纯obj文件的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I thought to develop a pure platform-independant binary *nix is necessary. So I use Linux in VMWare to develop a bootloader for a training one month later to some of my colleagues. I would say it sucks! First, VMWare is too slow; Second, update the software packages in Linux is complex. Just because everything is configurable, everything is so messy. The complicated dependancy relationships will definitely stun you to faint. Maybe I'm just not a good Linuxor.

Then I met with GNU compilers. Actually I knew of it for a long time. But I looked down upon the GCC on Windows. The adequat params can help you a lot. You can configure gcc to any state you want. One of them, you can let gcc@win32 generate a pure obj file, then ld it without WinMain included. Remember, objcopy can help you escape from the Win32 runtime/apis totally.

At last, write your makefile with nmake's grammar.

Congratulations, man, you've set up the OS dev. environment on Windows :)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值