Bartosz Skrzypczak
Bartosz Skrzypczak
What is even more weird - if I move that `int i = 0;` before the loop - it still works. But it I remove it - it breaks.
I tried adding a few NOPs - the same as with only one.
Bad things happen (but that's because for some reason I can't force it to use different stack yet).
It may be harder to switch to cross compiler later.
I'm trying to compile cross compiler and make a script that does that automatically.
Wouldn't it be better to read it in N bytes parts? (for some constant N)
I think so. The current implementation allocates memory for the whole file. For small files it's good enough (and without multitasking there is no reason to ever "cat" bigger files....
For now 256 should be ok. It can be changed if needed. If you really wanted you cold read byte by byte. But it would be much slower.
Cross compiler doesn't magically make it possible to create apps for it,but it is required to make it possible. Currently the script that compiles cross compiler needs some testing on...
I thought userspace was ring3 (I may be wrong)