Is dmd able to be forced not include some unneeded information into target object files to make bare metal 32-bit code?
Need some samples and build scripts to do it. Or maybe move to ldc2 required
Thread overview | |||||
---|---|---|---|---|---|
|
October 13 use dmd for bare metal i386 | ||||
---|---|---|---|---|
| ||||
Is dmd able to be forced not include some unneeded information into target object files to make bare metal 32-bit code? Need some samples and build scripts to do it. Or maybe move to ldc2 required |
October 13 Re: use dmd for bare metal i386 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Ponyatov | On Friday, 13 October 2023 at 22:14:36 UTC, Dmitry Ponyatov wrote: >Is dmd able to be forced not include some unneeded information into target object files to make bare metal 32-bit code? Need some samples and build scripts to do it. Or maybe move to ldc2 required You need ldc or gdc |
October 13 Re: use dmd for bare metal i386 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Ponyatov | On Friday, 13 October 2023 at 22:14:36 UTC, Dmitry Ponyatov wrote:
> Is dmd able to be forced not include some unneeded information into target object files to make bare metal 32-bit code?
>
> Need some samples and build scripts to do it.
Make an empty file called object.d in your build directory then compile with dmd and it won't emit much of anything in there.
I've run dmd programs on bare metal x86 many times in the past (but not recently, i have so many other things to do) including for one section of my "D Cookbook" almost ten years ago now (it is easier now than it used to be, back then you had to have something in object.d, now an empty one is mostly permitted)
|