Updating other compiler frontends [was D 1.076 and 2.061 release]
Iain Buclaw
ibuclaw at ubuntu.com
Wed Jan 9 01:44:11 PST 2013
On 8 January 2013 23:15, Walter Bright <newshound2 at digitalmars.com> wrote:
> On 1/8/2013 5:49 AM, Iain Buclaw wrote:
>
>> Would a target.h header be fine for this? Or do you have somewhere else
>> in mind.
>>
>
> I think a target.h/target.c would be a good addition. In general, I'd like
> to see all #ifdef's removed from the main dmd source code. Host and target
> specific behaviors should be abstracted out, like what root/port.h attempts
> to do.
>
>
OK, well I've started it off with Target::typesize, ::typealign,
::fieldalign. Maybe also ::fieldoffset, though gdc currently uses the D
frontend code to get that that with no known issues (only way to find out
is when we start expanding D2 to more targets).
And left it with the comment: This file contains a data structure that
describes a back-end target. At present it is incomplete, but in future it
should grow to contain most or all target machine and target O/S specific
information.
Regards
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130109/0c47fea6/attachment.html>
More information about the Digitalmars-d
mailing list