flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > removing fix directive support

Author
Thread Post new topic Reply to topic
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 03 Oct 2003, 07:12
Hi Tomasz,

Where should I delete the code that do support this directive in 1.49?
I have done some but i'm afraid it's not that clean.

I have realize that i have no use of it and i want some speed back.
Post 03 Oct 2003, 07:12
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 03 Oct 2003, 08:39
The support for "fix" directive is optimized in a way that there should not be any slow down unless you use this directive at least once in your source.
Post 03 Oct 2003, 08:39
View user's profile Send private message Visit poster's website Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 03 Oct 2003, 11:31
hmm... I hope so but I got 1.6 sec when compile using 1.49 and 1.1 when compile using 1.47 and the both has been used to compile GUI source file of 1.49 (Fasmw).

I'm on 1.2 GHz Celeron.
Post 03 Oct 2003, 11:31
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 03 Oct 2003, 12:20
Hmmm, that's strange. Try removing line 279 from PREPROCE.INC, it looks like:
Code:
        call    process_fix_constants    
Post 03 Oct 2003, 12:20
View user's profile Send private message Visit poster's website Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 03 Oct 2003, 13:08
hmm.. didn't work.
It seems like there are many place have to be removed, so let's forget about it.

Anyway thank you.
Post 03 Oct 2003, 13:08
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 03 Oct 2003, 13:35
This is a hmm... thread. Wink

Hmmm, what if there is some other problem that makes compilation slower.
I got an impression that 1.49 works slower too, but I have assumed that this is because of bigger Fresh project...
Post 03 Oct 2003, 13:35
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 03 Oct 2003, 13:45
Hi JohnFound,

This problem was introduce sinc 1.48 (the fix directive was born in this version of course).
So I guess it causes and i'm try to think of that this is not a problem.
Post 03 Oct 2003, 13:45
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 03 Oct 2003, 14:13
OK, let's see in the WhatsNew.txt for 1.48:

[+] added fix directive
[-] fixed small bug with symbolic constants

BTW: I ever wonder, what [+] and [-] means. Maybe [-] means slow down of compilator? Smile
Post 03 Oct 2003, 14:13
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 03 Oct 2003, 14:45
hehe.. nice joke Smile

+ sign mean added a feature or something cool to be added.
- sign mean removed a feature (mostly is bug) or get rid of unoptimized code.
Post 03 Oct 2003, 14:45
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 03 Oct 2003, 14:50
BiDark wrote:
hehe.. nice joke Smile


Thanks, it was not fully joke. I mean, maybe Privalov, unconsciously make some changes, that slow down FASM. I remember, there was some changes in conjunction with list feature...
Post 03 Oct 2003, 14:50
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 03 Oct 2003, 15:21
[quote="JohnFound"]
BiDark wrote:
I remember, there was some changes in conjunction with list feature...

Bingo! The slow-down was caused by the new feature of storing the corresponding offsets in output for each source line, which I have added in the way to enable listing/symbolic debugging features. Since official 1.49 does not utilize it anyway, I've removed it - you can grab the updated 1.49 release from the fasm's website.
Additional (much smaller) slowing down is happening for PE output only, and is related to the checksum calculation, which was added recently. If you don't need this feature, you can disable it by commenting out lines 1186-1204 of FORMATS.INC.
Post 03 Oct 2003, 15:21
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 03 Oct 2003, 15:58
Yea, now it is faster, but little. For Fresh project on my job's computer: PII 400MHz:

Was: 10.8s
Now: 9.6s

Regards.
Post 03 Oct 2003, 15:58
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark 04 Oct 2003, 03:28
Oche!, good job.
Post 04 Oct 2003, 03:28
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.