[CELT-dev] CELT grabbing 100KB of memory right off the top
jmvalin at jmvalin.ca
Mon Apr 18 19:44:17 PDT 2011
These sorts of features are meant to be handled by the config.h file.
Same for inline, fixed-point, stack allocation and others. Lots of
people build CELT fine on non-C99 compilers.
On 11-04-18 10:09 PM, Ross Bencina wrote:
> Timothy B. Terriberry:
>> What's wrong with passing -Drestrict ? Anything can be a macro in C.
> What's wrong with writing portable code that can compile out of the box with
> compilers other than gcc?
> imho if code is intended to be portable, C99 features should be used as an
> optional enhancement, not a baseline requirement. Code can (and should) be
> written accordingly. For example, detect if restrict is available rather
> than assuming it is.
> I have experienced the same hurdles trying to get CELT to compile under
> non-gcc compilers and I too find it surprising that a baseline
> implementation like this would assume C99 as a requirement.
> (a CELT user who uses multiple compiler toolchains on a daily basis)
> celt-dev mailing list
> celt-dev at xiph.org
More information about the celt-dev