flat assembler
Message board for the users of flat assembler.
Index
> Main > Cross-platform include files for C standard library function |
Author |
|
TmX 18 Sep 2010, 10:00
|
|||
18 Sep 2010, 10:00 |
|
vid 19 Sep 2010, 13:26
That is not possible. Some things like "errno" or "stdin" are in reality a macro that expands to different things in different implementation of libc
|
|||
19 Sep 2010, 13:26 |
|
leledumbo 23 Sep 2010, 11:14
Quote:
Hmm... maybe I could restrict not to use those macro aliased functions. I need to teach assembly and I guess calling OS C lib functions would be easier than calling kernel syscalls. |
|||
23 Sep 2010, 11:14 |
|
janequorzar 23 Sep 2010, 16:24
leledumbo wrote:
As a teacher of how to make your own OS, one thing I have taught all my students.. DO it all in assembly first.. So that they KNOW what they are doing if and when they make the compiler for their OS. Once they know how everything works and they can get to the point of making a Kernel in assembly, then they understand fully how things work when it comes to the hardware. If you use C, its almost like they are taking a shortcut and will not truly see what its like to have full 100% control of the OS. Dont get me wrong, C is awesome and very powerful, but unless you go through a lot of code, which most students wont, they wont know whats going on behind the scenes. |
|||
23 Sep 2010, 16:24 |
|
vid 23 Sep 2010, 17:20
I too would prefer with showing them how to trace code with some nice visual debugger. That way it is much easier to "see result", and they see result of every instruction, unlike getting one output after doing many things related to calling output function they can't possibly understand yet.
|
|||
23 Sep 2010, 17:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.