|
From: Mark W. <ma...@np...> - 2001-09-27 02:39:30
|
Hi, I would like to contribute my fiber implementation code to reactos. My questions is: (1) Fiber code is platform specific as it relies on manipulating register context - where should I put this? At present I have an x86 version. Stubs for the fiber functions are in lib\kernel32\thread\fiber.c, what is standard way of implementing platform specific code in reactos? (2) Currently my version compiles under VC using the __asm extension. Should I submit this code as NASM/GAS? I would prefer NASM, but I can do GAS. In the latter case, is .S OK? (3) As a final, possibly unrelated point, I discovered recently that mingw generates COFF that is not compatible with VC's idea of COFF. Specifically, the BSS data segment length is not generated in the right place (the only COFF definition I have found is the one used with djgpp (http://www.delorie.com/djgpp/doc/coff/) - this corresponds to the MS definition as far as their linker is concerned.) Would this be a problem for reactos (presuambly not if GNU ld understands the same format), and is this a known "problem"? I got quite a shock when compiling some old .S files with mingw and linking them with some VC generated code (the code appears OK at first but you get really weird crashes as the BSS segment in the final output is not the right size - eventually I found that my code was being overwritten, and why!). Thanks, Mark ==================================================== = To remove yourself from this mailing list, go to = = http://www.reactos.com/home/mailing.html = ==================================================== |