[EMAIL PROTECTED] wrote:
> >- Allocations do not require a function call, just a few instructions
> >(e.g. store pointer, adjust stack pointer etc.)
> 
> You could aslo use "alloca()" (which is a fine solution in Solaris and
> is used in a lot of Solaris library code, specifically the bits written
> by more experienced programmers)

Yes, but I explicitly used the C99 feature, more or less as a demo usage
within OS/Net code.

> >- The code size and complexity shrinks significantly (e.g. no |free()|
> >required in most situations)
> 
> Same with alloca.

Except that you don't have propper type checking anymore (and don't even
ask about Ratinal Purify which is highly allergic to things like
|alloca()|).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to