I'm on Macintosh, or Win32. I say: void *x = malloc(1024*1024*4); Or perhaps I s...
mcc @mcc@mastodon.social
I'm on Macintosh, or Win32.
I say:
void *x = malloc(1024*1024*4);
Or perhaps I say:
void *x = malloc(1024*1024*1024);
That's ordinary malloc. Just pointed clang or MSVC at a .c file and said go.
Do you expect that these calls allocate from heap, or do you expect they allocate from virtual memory?
Do you expect the answer to differ between Macintosh and Windows? Differ between Windows 7 and Windows 11? Differ between the first and second code snippet?