flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Optimizations, Tips & Tricks |
Author |
|
HyperVista 04 Mar 2007, 15:24
gdev - first, welcome to the fasm community.
As for a central location for tips and tricks, Tomasz (father of fasm) created this thread sometime ago. This is a good place to start http://board.flatassembler.net/topic.php?t=4816 |
|||
04 Mar 2007, 15:24 |
|
Dex4u 04 Mar 2007, 15:56
When i was working on my 512byte compo entry, i coded what i wanted to fit in 512bytes and than started optimising for size, if in doubt, i try differant instructions or reg size etc, and assemble it and see if its smaller and still works.
Then if you get a supprize because something is smaller, you can find out why, so will help you learn. |
|||
04 Mar 2007, 15:56 |
|
gdev 04 Mar 2007, 15:58
HyperVista wrote: gdev - first, welcome to the fasm community. Thank you. Quote:
Ah, ok, sorry for my useless thread, it seems this link is what I was looking for. |
|||
04 Mar 2007, 15:58 |
|
gdev 04 Mar 2007, 16:05
Dex4u wrote: When i was working on my 512byte compo entry, i coded what i wanted to fit in 512bytes and than started optimising for size, if in doubt, i try differant instructions or reg size etc, and assemble it and see if its smaller and still works. That's indeed a logical approach, but it requires already a good knowledge of the instruction set to be usable so it's quite difficult. For the moment I prefer work with a small subset of the instructions with the exception of some well known optimizations. But the list of those optimizations is not easy to found. I'm going to read the material pointed by the link above. This should be a good starter. |
|||
04 Mar 2007, 16:05 |
|
rugxulo 04 Mar 2007, 19:56
Okay, here's some simple (somewhat DOS-related) suggestions:
|
|||
04 Mar 2007, 19:56 |
|
gdev 04 Mar 2007, 23:13
Thanks, those are good points I will keep in mind. This is the type of short straightforward list I like
|
|||
04 Mar 2007, 23:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.