Writing a heap memory management library can be very tricky to do correctly. There is nothing stopping you at this point writing the heap memory management functions.

I suggest you use libc as reference to help you avoid the pitfalls.

As for the rest (streams etc), there is more you need to be able to do first. You need a way to buffer parts of files in memory as a bare minimum. Also, some way to deal with stdin, stdout and stderr differently from normal files.

Also - on a picky point of information - stdio is a C library. In C++, it is technically referenced as cstdio to denote the fact it is a C library and not a C++ one

Yeah, that tutorial is great but it is written with GCC so has some problem with going down to VC++ (I mean GAS style of inline assembly, that gives us possibility to use all registers, and eip too. But VC++ asm don't know such register... and so on...)

And trying to run it I've got error that even James couldn't explain.

Thanks.

Thinking of great - thinking of little, thinking of little - thinking of great.

There is no difference between GAS ans VC++ in terms of which registers you can access. They both allow full and complete access to the x86 instruction set.

The two main differences are that GAS uses AT&T syntax while VC++ uses Intel(ish) which is the same as NASM already used so far. The other is that GCC is far far better at optimizing around inserted asm.