COFF support for Win32 merged
I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 -- /Jacob Carlborg
Re: COFF support for Win32 merged
On 17/08/2014 9:57 p.m., Jacob Carlborg wrote: I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 Well this makes me happy :3 Thank you Rainer!
Re: COFF support for Win32 merged
Am 17.08.2014 11:57, schrieb Jacob Carlborg: I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 Wow, that's fantastic news! Thank you very much Rainer!
Re: COFF support for Win32 merged
Jacob Carlborg: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. I have just recompiled dmd, but I don't see that new compiler switch (dmd 2.067). I am compiling in a wrong way? Bye, bearophile
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 10:50:38 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I have just recompiled dmd, but I don't see that new compiler switch (dmd 2.067). are you sure that you compiled dmd for 32-bit windows? other versions seems to not have this flag. signature.asc Description: PGP signature
Re: COFF support for Win32 merged
ketmar: are you sure that you compiled dmd for 32-bit windows? other versions seems to not have this flag. Yes, I am using a 32 bit Windows. Bye, bearophile
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 11:34:59 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Yes, I am using a 32 bit Windows. are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) unfortunately, i have no windows boxes (neither cross-compilers), so can't check it myself. but i see this in mars.c: #if TARGET_WINDOS else if (strcmp(p + 1, m32mscoff) == 0) { global.params.is64bit = 0; global.params.mscoff = true; } #endif ... static const char* parse_arch(size_t argc, const char** argv, const char* arch) { for (size_t i = 0; i argc; ++i) { const char* p = argv[i]; if (p[0] == '-') { if (strcmp(p + 1, m32) == 0 || strcmp(p + 1, m32mscoff) == 0 || strcmp(p + 1, m64) == 0) arch = p + 2; else if (strcmp(p + 1, run) == 0) break; } } return arch; } so i believe that it should work. signature.asc Description: PGP signature
Re: COFF support for Win32 merged
ketmar: are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) OK, -m32mscoff works (probably I was using a wrongly written switch), but I don't see it listed among the other compiler switches. Bye, bearophile
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 13:01:06 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: OK, -m32mscoff works (probably I was using a wrongly written switch), but I don't see it listed among the other compiler switches. maybe this is due to mscoff support still considering 'experimental'? signature.asc Description: PGP signature
Re: COFF support for Win32 merged
On Sunday, 17 August 2014 at 13:01:07 UTC, bearophile wrote: ketmar: are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) OK, -m32mscoff works (probably I was using a wrongly written switch), but I don't see it listed among the other compiler switches. You will need to use his unmerged branches of druntime and phobos also: https://github.com/rainers/druntime/tree/coff32 https://github.com/rainers/phobos/tree/coff32 Hopefully those get merged next, as I think this could be a big feature for the 2.067 release. Nice work, Rainer.
Re: COFF support for Win32 merged
On 8/17/14, 6:01 AM, bearophile wrote: ketmar: are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) OK, -m32mscoff works (probably I was using a wrongly written switch) schwartzSort comes to mind -- Andrei
Re: COFF support for Win32 merged
On 8/17/14, 7:58 AM, Andrei Alexandrescu wrote: On 8/17/14, 6:01 AM, bearophile wrote: ketmar: are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) OK, -m32mscoff works (probably I was using a wrongly written switch) schwartzSort comes to mind -- Andrei forgot the smiley :o) -- Andrei
Re: COFF support for Win32 merged
Andrei Alexandrescu: schwartzSort comes to mind -- Andrei forgot the smiley :o) -- Andrei Yeah that's an infamous example. Standard libraries should avoid too much hard to write identifiers. Bye, bearophile
Re: COFF support for Win32 merged
On 8/17/2014 5:57 AM, Jacob Carlborg wrote: I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 Wow! This is MAJOR! o_O
Re: COFF support for Win32 merged
On 8/17/2014 2:57 AM, Jacob Carlborg wrote: I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 Yes, it did turn out to be a much less intrusive change than I anticipated, and Rainer's work also included some sensible refactoring which was valuable in and of itself.
Re: COFF support for Win32 merged
On 8/17/2014 6:11 AM, ketmar via Digitalmars-d-announce wrote: maybe this is due to mscoff support still considering 'experimental'? It certainly is, as there is no druntime support for it, it is not tested by the autotester, etc.
Re: COFF support for Win32 merged
On 8/17/14, 11:39 AM, Nick Sabalausky wrote: On 8/17/2014 5:57 AM, Jacob Carlborg wrote: I though that this might be important enough to share on the announce list: A pull request [1] by Rainer Schuetze which adds COFF support for Win32 has recently been merged by Walter. It seems to be enabled using the -m32mscoff flag. [1] https://github.com/D-Programming-Language/dmd/pull/3843 Wow! This is MAJOR! o_O Indeed! Does this enable VS debugging of D programs? Also, what's the deal on Win64? -- Andrei
Re: COFF support for Win32 merged
On Sunday, 17 August 2014 at 22:25:55 UTC, Andrei Alexandrescu wrote: Indeed! Does this enable VS debugging of D programs? This enables using the MS C runtime for Win32 programs, but you could already use VS for debugging thanks to cv2pdb (also written by Rainer!). Though, now that the debug information is not channeled through the CodeView format, it might be more accurate. Also, what's the deal on Win64? -- Andrei Win64 is COFF-only because OPTLINK is 32-bit-only, so PDB was DMD's only Win64 debugging format (not that that's a bad thing).