Re: Isn't it time there was a standard align statement?
- From: "David T. Ashley" <dta@xxxxxxxx>
- Date: Sat, 13 Jan 2007 15:52:04 -0500
<artifact.one@xxxxxxxxxxxxxx> wrote in message
news:1168715750.406199.266770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It'd be really pleasant (in my opinion) if the next revision of the
C language actually allowed some portable control over data
alignment.
It just seems that this really should be standardized as it clearly
is useful for a vast number of programmers who need to get close to the
hardware but don't want to stray into assembly code (think Altivec,
SSE).
Sounds like EXACTLY the point of the C language, doesn't it?
Your post is rather general and doesn't give a specific example of a
scenario where the current C mechanisms are inadequate.
Please don't make general criticisms of the language. Instead, post a
specific example of some effect or end-result you are trying to achieve and
why you believe you can't do it with the current mechanisms.
I've always found the current mechanisms to be adequate. Where alignment is
unknown or you need to do double-duty with a pointer, just define a variant
record and let the compiler figure it out ...
.
- Follow-Ups:
- Re: Isn't it time there was a standard align statement?
- From: Tim Prince
- Re: Isn't it time there was a standard align statement?
- References:
- Isn't it time there was a standard align statement?
- From: artifact . one
- Isn't it time there was a standard align statement?
- Prev by Date: Re: program having printf() function invocation without including <stdio.h>
- Next by Date: Re: custom printf() function
- Previous by thread: Isn't it time there was a standard align statement?
- Next by thread: Re: Isn't it time there was a standard align statement?
- Index(es):
Relevant Pages
|