Linking cosmos output.bin with other assembly code?

Topics: Compiler, Off Topic
Aug 5, 2012 at 3:48 AM

Hello , I am thinking about writing an elf loader for my OS , but I am wondering if it is possible to link a program compiled on windows (I mean assembled on windows , but for my OS) with the output.bin file generated by cosmos so it can access some functions from my OS. It looks like all the functions in output.bin are global because you can still see the function names in the bin file after it was created (I am not sure though because I am not an assembly wiz). If this is possible is there still an assembly file generated by cosmos (I remember there was one generated by the MS4 compiler that was assembled by NASM) so I can see what names are of the C# functions in the assembly code. (From what I have seen so far it appears the IL2CPU renames the functions and fields like _NAMESPACE_CLASS.field name or method name. Anyways all I want to know is whether it is possible to link other programs with the output.bin

Coordinator
Aug 5, 2012 at 2:57 PM
On 8/4/2012 11:48 PM, GruntXProductions wrote:
> like all the functions in output.bin are global because you can still
> see the function names in the bin file after it was created (I am not
> sure though because I am not an assembly wiz). If this is possible is

Everything in ASM is always global.