flat assembler
Message board for the users of flat assembler.

Index > Main > new pre-release with the resource linker

Goto page Previous  1, 2, 3  Next
Author
Thread Post new topic Reply to topic
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
Hi Privalov,

Thanks for the latest release,I will try it.

_________________
Code it... That's all...
Post 28 Nov 2003, 18:43
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy
Hi again!

Thanks, Privalov... With the newest release, everything worked fine! Wink Excellent! Cool Keep up the good work!

Regards,
Tommy
Post 28 Nov 2003, 19:21
View user's profile Send private message Visit poster's website Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
Privalov,John Found, Anyone?

I would like to modify the source for fasmw to support this new feature? What do I need to change?

_________________
silkodyssey
Post 28 Nov 2003, 22:04
View user's profile Send private message MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
silkodyssey wrote:
Privalov,John Found, Anyone?
I would like to modify the source for fasmw to support this new feature? What do I need to change?


Simply change compiler core files and try to compile. There will be some errors because of missing variables. Add them (I can't remember exactly, but resource_size and resource_data, or similar) to the other variables and it should work.

Regards.
Post 28 Nov 2003, 23:07
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
JohnFound,

Thanks I got it Very Happy. It took a while to figure out which file the variables were supposed to be declared in but I found it eventually Smile. Anyone who wants to update fasmw, copy all the inc files from the source directory of the package uploaded by privalov to the source directory for fasmw. Then add the code below to the data section of the fasm.inc file in source\win32\fasmw. Then compile away Smile

Code:
resource_data dd ? 
resource_size dd ? 
    

_________________
silkodyssey
Post 28 Nov 2003, 23:42
View user's profile Send private message MSN Messenger Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
Hi Ody,

Just ran a compile. Works fine. Thanks for the info.

Regards,
Art
Post 29 Nov 2003, 01:02
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
No problem art, maybe this is tbe beginning of many more modifications to the fasm source Very Happy

_________________
silkodyssey
Post 29 Nov 2003, 01:13
View user's profile Send private message MSN Messenger Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
oh, sure same here. i'm starting tinkering with the source too. Very Happy

May be i'll spin out some features for it: A tentative list of what's needed:
1. Inbuilt resource compiler (not resource inclusion).
2. Not sure if FASM supports name mangling, but will check that. Aids generation of prototypes for masm and next steps.
3. Optional parameter checks that will enable fasm to use MASM32 incs, which will also turn on libs.
4. Inline strings for Windows programming. (haven't given this much thought read it on the GoAsm board.)

Fasm's syntax is the best i've seen until now, so that's fine until somethin pops up in my head.

Regards,
Art
Post 29 Nov 2003, 01:47
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
Quote:

1. Inbuilt resource compiler (not resource inclusion).


No need for resource compiler with fasm. You can create resources manually or use macros provided Smile

Quote:

4. Inline strings for Windows programming. (haven't given this much thought read it on the GoAsm board.)


You can do this with the invoke macro in the win32ax include files. For example you can create a messagebox like this :

Code:
 
invoke MesssageBox, 0, 'message','message', 0 
    


I have an idea of my own. Includelib and inludeobj directives. With these there'll be no need for an external linker Smile

_________________
silkodyssey
Post 29 Nov 2003, 01:58
View user's profile Send private message MSN Messenger Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
i kinda tend to not use macro code that I haven't written since I don't know the things going on under the hood. If i'm not wrong, macros need expansion at assembly-time and take some more time than in-built constructs. Anyway, thanks for the comments, I'm new to FASM and i'm definitely learning a lot.

Yeah, Includelib and Includeobj sound cool. If FASM becomes capable to handle MASM stuff, I'll kick MASM away forever in the gloom of darkness.

Regards,
Art
Post 29 Nov 2003, 07:52
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
MASM stuffs like?
Post 29 Nov 2003, 08:10
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
only time can tell that? i'm human. Laughing

Cheers roticv,
Art
Post 29 Nov 2003, 08:13
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
art_sands wrote:
If i'm not wrong, macros need expansion at assembly-time and take some more time than in-built constructs.


You are wrong a little. FASM uses some different approach to process macroses. There was short manual about the internal structure of FASM. Search the board for it.

Regards.
Post 29 Nov 2003, 08:20
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
Hi JohnFound,

Thanks for the answer, anyway. Ha. Now that you've told me FASM does macro expansions in a slightly different manner, I'll get on with the internals.
Post 29 Nov 2003, 08:48
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
art_sands wrote:
Not sure if FASM supports name mangling, but will check that. Aids generation of prototypes for masm and next steps.


Hi Art,

You can try my inc2inc tool - Masm to Fasm function prototype converter.

http://board.flatassembler.net/topic.php?t=588

Plus, have a look at my scanner tool,it declares external functions with mangled names. (Examples in the attachment :Fasm+MS link direct/indirect)

http://board.flatassembler.net/topic.php?t=72

_________________
Code it... That's all...
Post 29 Nov 2003, 13:01
View user's profile Send private message Visit poster's website Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
The scanner tool is great, I use it all the time Smile. I have another idea though. Vortex, how about adding an option for adding the functions directly to the asm source instead of a separate imp file.

_________________
silkodyssey
Post 29 Nov 2003, 13:06
View user's profile Send private message MSN Messenger Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
There's another alternative to external scanner.

Why don't you incorporate it into FASM itself. That way, fasm will be able to use masm incs directly too. Of course, that should be optional.

Regards,
Art
Post 29 Nov 2003, 13:16
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
Well I'm not sure about fasm itself but it would be very nice feature for fresh or the fasmw IDE. Just click scan and it creates an import section for the app with only the functions used. I like this idea. If no wants to do it I might try it myself with fasmw Smile

_________________
silkodyssey
Post 29 Nov 2003, 13:25
View user's profile Send private message MSN Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
art_sands: The can-opener that is also the hammer at the same time, isn't a handy can-opener, and isn't a good hammer either. It's possible to make some external compiler that could process any source you can image into fasm's source, but it's not the task of fasm itself. I have always tried to keep its set of features as small as possible - so you wouln't have to learn too much of sophisticated commands - while making them powerful enough to deal with many different problems. I propose you to dig deeper in the capabilities of fasm's macros - please appreciate all the work I've dedicated to it.
Post 29 Nov 2003, 13:39
View user's profile Send private message Visit poster's website Reply with quote
art_sands



Joined: 23 Oct 2003
Posts: 55
art_sands
Privalov,

I LOVE FASM! If that's what you want, you got it. I feel the same way for FASM as everybody else does. It's a gem and should evolve consistently.

Regards,
Art
Post 29 Nov 2003, 14:29
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, 3  Next

< 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 cannot attach files in this forum
You can download files in this forum


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

Website powered by rwasa.