← Back to context Comment by pjmlp 10 months ago Sure, if one doesn't care about portable code. 5 comments pjmlp Reply the-smug-c-one 10 months ago What modern OS doesn't have the equivalent of mmap? Just som #ifdefs. I didn't know I'd ever hear "use malloc, because it's portable".sylware is pretty much right anyway. Try to avoid malloc, or write smaller allocators on top of malloc. pjmlp 10 months ago Why bother with some #ifdefs when the ISO C standard library already does the job? the-smug-c-one 10 months ago Because you're probably writing a much larger program so some ifdefs aren't a big deal :-). 2 replies →
the-smug-c-one 10 months ago What modern OS doesn't have the equivalent of mmap? Just som #ifdefs. I didn't know I'd ever hear "use malloc, because it's portable".sylware is pretty much right anyway. Try to avoid malloc, or write smaller allocators on top of malloc. pjmlp 10 months ago Why bother with some #ifdefs when the ISO C standard library already does the job? the-smug-c-one 10 months ago Because you're probably writing a much larger program so some ifdefs aren't a big deal :-). 2 replies →
pjmlp 10 months ago Why bother with some #ifdefs when the ISO C standard library already does the job? the-smug-c-one 10 months ago Because you're probably writing a much larger program so some ifdefs aren't a big deal :-). 2 replies →
the-smug-c-one 10 months ago Because you're probably writing a much larger program so some ifdefs aren't a big deal :-). 2 replies →
What modern OS doesn't have the equivalent of mmap? Just som #ifdefs. I didn't know I'd ever hear "use malloc, because it's portable".
sylware is pretty much right anyway. Try to avoid malloc, or write smaller allocators on top of malloc.
Why bother with some #ifdefs when the ISO C standard library already does the job?
Because you're probably writing a much larger program so some ifdefs aren't a big deal :-).
2 replies →