Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #28860

Re: alignment shame (?)

From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: alignment shame (?)
Date 2012-11-30 14:07 -0500
Organization A noiseless patient Spider
Message-ID <50B903F6.5000503@verizon.net> (permalink)
References (1 earlier) <b3e27010-7bd9-49c9-af6c-6b7c8b3511cf@bx4g2000vbb.googlegroups.com> <9f3f3acc-d396-4ad6-9f64-378ede00aefc@googlegroups.com> <9af3e529-5e44-4ac0-8b3b-696ebfd60940@n5g2000vbk.googlegroups.com> <50B8E2C0.1090401@verizon.net> <40d5aeb3-2e87-4272-be89-98194af21a1f@bx4g2000vbb.googlegroups.com>

Show all headers | View raw


On 11/30/2012 01:57 PM, ImpalerCore wrote:
> On Nov 30, 11:45 am, James Kuyper <jameskuy...@verizon.net> wrote:
>> On 11/30/2012 10:42 AM, ImpalerCore wrote:
>> ...
>>
>>>> This is much trouble. I need simple
>>>> modifier to align anything to any
>>>> boundary, Standarized one would be
>>>> the best. Simple Alignas_(value) would be
>>>> good if it will work in broad scope and good
>>
>>> If you want simple, you'll have to restrict yourself to a single
>>> platform and compiler that does what you want, which is often good
>>> enough for applications, but less so for libraries.
>>
>> Isn't _Alignas() adequate? It's a brand new feature of C2011, but it
>> already works on far more than one platform and one compiler, and will
>> probably be much more widely implemented in the near future.
> 
> From your post on Sept. 20, 2012:
> 
> My project is still governed by a 1997 agreement with our client which
> requires us to write code which "conforms" to C90 plus the two
> Technical
> Corrigenda.
> 
> I'm curious how you would apply _Alignas in your scenario if you had a
> need to use it.

I can't - but the OP only said that he would prefer a standardized
feature, which _Alignas() is. He didn't specify a particular version of
the standard that had to support the feature. The fact that he's willing
to even consider a non-standardized feature implies he's much less
strictly bound by coding standards than I am.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 01:25 -0800
  Re: alignment shame (?) Noob <root@127.0.0.1> - 2012-11-30 10:46 +0100
    Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 03:24 -0800
  Re: alignment shame (?) Malcolm McLean <malcolm.mclean5@btinternet.com> - 2012-11-30 05:22 -0800
    Re: alignment shame (?) James Kuyper <jameskuyper@verizon.net> - 2012-11-30 08:52 -0500
      Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 06:55 -0800
  Re: alignment shame (?) ImpalerCore <jadill33@gmail.com> - 2012-11-30 06:56 -0800
    Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 07:17 -0800
      Re: alignment shame (?) ImpalerCore <jadill33@gmail.com> - 2012-11-30 07:42 -0800
        Re: alignment shame (?) James Kuyper <jameskuyper@verizon.net> - 2012-11-30 11:45 -0500
          Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 09:42 -0800
          Re: alignment shame (?) ImpalerCore <jadill33@gmail.com> - 2012-11-30 10:57 -0800
            Re: alignment shame (?) James Kuyper <jameskuyper@verizon.net> - 2012-11-30 14:07 -0500
              Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 11:38 -0800
        Re: alignment shame (?) fir <profesor.fir@gmail.com> - 2012-11-30 09:33 -0800

csiph-web