Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: standard me...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 28 of 32 Topic 26173 of 26977
Post > Topic >>

Re: standard memory allocator alignment issue...

by Eric Sosman <Eric.Sosman@[EMAIL PROTECTED] > May 13, 2008 at 02:26 PM

Spiros Bousbouras wrote:
> On 12 May, 23:08, Eric Sosman <Eric.Sos...@[EMAIL PROTECTED]
> wrote:
>> Chris Thomasson wrote:
>>> You got it:
>>> [...]
>>> I am trying to come up with somewhat "****table" hack that can attempt
to
>>> determine maximum alignment for integral types across a number of
>>> different compilers.
>>      The difficulties are in enumerating all the integer types
>> (easy in C90, hard in C99)...
> 
> Isn't it actually impossible to enumerate all the integer
> types in C99 ?  The standard allows extended integer
> types so you have no way of knowing whether on some
> platform you have a "hideously long int" which has
> stricter alignment requirements than every standard
> type.

     Well, "impossible" is just a special case of "hard,"
right?  ;-)

     I'd actually written "impossible" and then I backed
off just in case Somebody Way Smarter Than Me came up with
a nifty dodge.  For example, SWSTM might produce a proof
that the alignment of uintmax_t suffices for all other
integers, too.  I don't know of any such proof (even if
I did, the margin of this post would probably be too narrow
to contain it) but SWSTM might come up with something, so
I ducked the issue.

-- 
Eric.Sosman@[EMAIL PROTECTED]

 




 32 Posts in Topic:
standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-11 23:13:16 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-11 23:24:31 
Re: standard memory allocator alignment issue...
Eric Sosman <esosman@[  2008-05-12 08:14:40 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 14:41:20 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 14:51:41 
Re: standard memory allocator alignment issue...
Eric Sosman <Eric.Sosm  2008-05-12 18:22:03 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 15:41:29 
Re: standard memory allocator alignment issue...
Ian Collins <ian-news@  2008-05-13 11:22:53 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 16:36:44 
Re: standard memory allocator alignment issue...
Eric Sosman <Eric.Sosm  2008-05-12 18:08:39 
Re: standard memory allocator alignment issue...
Ian Collins <ian-news@  2008-05-13 11:32:26 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 16:41:37 
Re: standard memory allocator alignment issue...
Ian Collins <ian-news@  2008-05-13 11:56:18 
Re: standard memory allocator alignment issue...
Spiros Bousbouras <spi  2008-05-12 16:02:41 
Re: standard memory allocator alignment issue...
richard@[EMAIL PROTECTED]  2008-05-12 23:13:30 
Re: standard memory allocator alignment issue...
Keith Thompson <kst-u@  2008-05-12 16:20:39 
Re: standard memory allocator alignment issue...
Chris Torek <nospam@[E  2008-05-13 00:46:18 
Re: standard memory allocator alignment issue...
Keith Thompson <kst-u@  2008-05-13 00:46:55 
Re: standard memory allocator alignment issue...
Ben Bacarisse <ben.use  2008-05-13 01:53:49 
Re: standard memory allocator alignment issue...
Eric Sosman <esosman@[  2008-05-12 21:26:56 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-12 19:00:01 
Re: standard memory allocator alignment issue...
Keith Thompson <kst-u@  2008-05-13 09:23:10 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-28 23:57:44 
Re: standard memory allocator alignment issue...
"Chris Thomasson&quo  2008-05-29 00:02:17 
Re: standard memory allocator alignment issue...
Ben Bacarisse <ben.use  2008-05-13 03:07:49 
Re: standard memory allocator alignment issue...
Ben Bacarisse <ben.use  2008-05-13 03:36:49 
Re: standard memory allocator alignment issue...
Spiros Bousbouras <spi  2008-05-13 10:53:22 
Re: standard memory allocator alignment issue...
Eric Sosman <Eric.Sosm  2008-05-13 14:26:59 
Re: standard memory allocator alignment issue...
Keith Thompson <kst-u@  2008-05-13 12:32:07 
Re: standard memory allocator alignment issue...
CBFalconer <cbfalconer  2008-05-13 16:24:00 
[OT] Re: standard memory allocator alignment issue...
Eric Sosman <Eric.Sosm  2008-05-13 17:11:24 
Re: [OT] Re: standard memory allocator alignment issue...
Richard Heathfield <rj  2008-05-13 22:07:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:01:33 CDT 2008.