flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > compilers for menuetos

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Endre



Joined: 29 Dec 2003
Posts: 212
Location: Budapest, Hungary
Endre
Yeah, that's what I'm talking about. You've got to implement some compiler specific functions (here e.g. __cxa_pure_virtual()).

You've put MenuetOS header in one of the asm files which means that you definitely have to use assembly file and additionally it must be the first, given to the linker. This constraint can however be eliminated if you put the header into the linker script. Otherwise I don't know whether in case of MenuetOs it makes too much sense to distinguish between the sections. I guess it merely makes the code bigger (each section on another page (4K-padding)), but it's up to you.
Post 14 Jul 2006, 23:24
View user's profile Send private message Reply with quote
lost



Joined: 14 Jul 2006
Posts: 3
lost
>Yeah, that's what I'm talking about. You've got to implement some compiler specific functions (here e.g. __cxa_pure_virtual()).
It`s only becouse of *panic* gcc nature, a have no pure virtual calls in my code, and compilier should stay quite Smile

>This constraint can however be eliminated if you put the header into the linker script.
Yeah i saw your solution, but i have no time to make changes Wink
Notice, that i`m not makefile guru and VS2005 - my native devenv, but thank you for idea Smile
btw, mlibc uses asm header style, and works fine Rolling Eyes

All in all i still need some startup stuff written in assembly (but now it being converted to C).

> I guess it merely makes the code bigger (each section on another page (4K-padding)), but it's up to you.
don`t know what are you talking about, compilied version is about 2.4kb + we still have packers ^^
If you use ld scripts, all alignment should be handcoded(at least when you use binary output), many samples in man and howto`s
Post 15 Jul 2006, 04:53
View user's profile Send private message Reply with quote
Endre



Joined: 29 Dec 2003
Posts: 212
Location: Budapest, Hungary
Endre
Ok, keep up good working Wink
Post 15 Jul 2006, 10:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.