4 ms·
Just to take one (small) example, the Arduino IDE is C++, and you will not mmap() a lot there.
by IcePic 7y ago
Just to take one (small) example, the Arduino IDE is C++, and you will not mmap() a lot there.
- ncmncm 7y agoYou also won't new[] a lot there. How much can it even physically address?
- alehander42 7y agobut often you might write code that you dont know it will end up there, like lib
- IshKebab 7y agoActually Arduino code does tend to use dynamic allocation for things like strings - it's a lot easier than the alternative, they tend to have quite a lot of memory these days (e.g. 1 MB) and hobby projects don't need to be super-reliable usually.
- ncmncm 7y agoOne megabyte or ten isn't enough to bother with mapping, and on Arduino you don't typically have memory mapping hardware anyway. "Big" means gigabytes these days, sometimes hundreds of them.
- dekhn 7y agoI've actually used an STL port to Arduino and was able to create a standard vector of length three but not four. that crashes the system. I believe it uses a custom allocator.