Re: new IL: C (sort of...).
- From: "Rod Pemberton" <do_not_have@xxxxxxxxxxxxx>
- Date: Thu, 11 Jun 2009 20:09:03 -0400
"Harold Aptroot" <harold.aptroot@xxxxxxxxx> wrote in message
news:2e7a3$4a314380$53558f0b$1854@xxxxxxxxxxxxxxxxxxxxxxxxxx
"Rod Pemberton" <do_not_have@xxxxxxxxxxxxx> wrote in messagequalifiers?
news:h0pklu$k5i$1@xxxxxxxxxxx
bitfields? floats? unions? multiple integer and char types?
volatile? const? void? void*?
I'd get rid of all those too... :-)
[...]
Rod Pemberton
Then how about graphics? (requires floats in many places)
So?
Is it important enough language feature to keep or implement in his IL? I'd
say "no." Floats/doubles are not a high use feature. He might keep because
they are needed to compile floating point.
E.g., by choosing all characters to be "unsigned char," he can eliminate
"signed char" from the IL. There will be a few situations where code
correction is needed to compensate for different range checks, but they can
be transformed.
Would you keep the double? It's even worse than a float..
No.
Interoperability with everything
I think that's part of the point. He can't get a 100% interoperability for
multiple languages with a generic IL. He'd need a highly specialized IL.
So, what does he need for a very _useful_ IL? He definately wants to keep
control-flow, procedures, integer arithmetic, characters, etc. If some of
the features he needs can be converted to simpler forms, then remove the
"compound" features...
No volatile? How about threading then?
No const? Doesn't matter for the code as much, but you'd put more load on
the optimizer..
C existed without these. These could be considered specialized
functionality - which, in my mind, justifies considering them for removal
from an IL. Does an IL based on C really need "const" once the
type-checking on the language has been done?
But throwing out bitfields and unions wouldn't hurt too much, you can
emulate both using other features..
Ditto for const, array declarations, void, void*, typedefs...
And void, well, just return zero I guess
Not too sure about the void pointer, I can't really think of a place where
it's absolutely required.
C existed without these too.
Rod Pemberton
.
- Follow-Ups:
- Re: new IL: C (sort of...).
- From: cr88192
- Re: new IL: C (sort of...).
- From: Harold Aptroot
- Re: new IL: C (sort of...).
- References:
- RFC: new IL: C (sort of...).
- From: cr88192
- Re: new IL: C (sort of...).
- From: Rod Pemberton
- Re: new IL: C (sort of...).
- From: Harold Aptroot
- RFC: new IL: C (sort of...).
- Prev by Date: Re: new IL: C (sort of...).
- Next by Date: Re: new IL: C (sort of...).
- Previous by thread: Re: new IL: C (sort of...).
- Next by thread: Re: new IL: C (sort of...).
- Index(es):
Relevant Pages
|