1. Where is a good tutorial/book that explains creating a library, new code, and a compiler? I'm about to start this project by next month for my highschool class and need a bit of preface as to what I'll be getting into (and where I can go if I'm stuck  :D)

2. When it comes to opening files, is it more ideal to use a C++ function integrated to handle the file or to just do it all in ASM?
Posted on 2008-11-02 15:27:15 by Kamikaze
1) Um.

2) Well C++ functions as you say, if running on Windows OS, will use underlying Win32 API so they do add a bit overhead to the process because as I remember, the return value of fopen() in C/C++ is a structure while in ASM if you use CreateFile() Win32 API, you will simply get the handle to the file. The FILE* return value of the fopen() function of the standard library in C/C++ is a pointer to a structure so all the allocation and filling the structure takes time to be accomplished. So I would say using Win32 API directly is faster.
Posted on 2008-11-02 18:17:16 by XCHG
Alright, gotcha.
And yes, I agree with the "um..." on 1  :P
Posted on 2008-11-02 18:47:16 by Kamikaze
Kamikaze, this link may also help you:

Posted on 2008-11-03 19:19:27 by rags
That helps a lot!
Posted on 2008-11-06 15:11:15 by Kamikaze
Actually I messed up. I DO need a compiler instruction book (and this helps! I've learned pascal), but it would be preferable if there was one in Assembly for 80x86 (MASM).
Anybody have any more suggestions?
Posted on 2008-11-06 17:52:21 by Kamikaze
Red Dragon compiler book, any edition will do - the most recent editions contain additions that probably won't be of interest to you.
Posted on 2008-11-07 01:12:52 by Homer