flat assembler
Message board for the users of flat assembler.

Index > Main > minifasm?


the minimal size of fasm in kbytes is...
more than 1 and less than 2
9%
 9%  [ 1 ]
between 2 and 4
9%
 9%  [ 1 ]
over 4 and below 8
9%
 9%  [ 1 ]
after 8 and before 16
9%
 9%  [ 1 ]
€(16, 32)
0%
 0%  [ 0 ]
32< x <45
9%
 9%  [ 1 ]
i don't know
54%
 54%  [ 6 ]
Total Votes : 11

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 24 Dec 2008, 18:19
what version of fasm is the minimalist?

i am currious of the size of the compiler if it compiles only instructions needed to compile itself without bugs.
Post 24 Dec 2008, 18:19
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20535
Location: In your JS exploiting you and your system
revolution 24 Dec 2008, 23:49
Why don't you just modify it and make a version that does what you want? Rather than making wild guesses you can know for real.
Post 24 Dec 2008, 23:49
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20535
Location: In your JS exploiting you and your system
revolution 25 Dec 2008, 03:03
Okay so putting just a little bit of thought into making a truly small "assembler" then all that is needed is to assemble db.

So doing only that and also limiting to something like a DOS .com file would allow the "assembler" to be very small, less than 1kB.

Of course, writing source code would be rather difficult, but that would be a small price to pay to save that precious RAM and HDD space.
Post 25 Dec 2008, 03:03
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 25 Dec 2008, 06:37
let it be just one byte, just it will be a special very big byte Very Happy
Post 25 Dec 2008, 06:37
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 25 Dec 2008, 10:34
Quote:
but that would be a small price to pay to save that precious RAM and HDD space.

not to save space, but to run many assemblers together to do a sort of AI with real time compilation of asm source.
the PC to become a virtual machine or stuff like that.
Post 25 Dec 2008, 10:34
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Dec 2008, 13:40
Quote:
not to save space, but to run many assemblers together to do a sort of AI with real time compilation of asm source.

why don't you use direct opcode generation then?
Post 25 Dec 2008, 13:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 25 Dec 2008, 14:52
it's not only to generate opcodes, but to link datas.
create pointers into ram using the equates and labels
and script some asm sometimes to make data processing.

it is in order to have every files and processes under control.
first step should be to create a pointer based program.
instead of successive calls, i have successive pointers.
but these pointers should be modifiable in real time on the demand of the user, modified, created, and deleted.
the only secure way i know is to use fasm to link in real time everything.
fasm is fast enough to be used as a shell and kernel device.
Post 25 Dec 2008, 14:52
View user's profile Send private message Visit poster's website Reply with quote
kalambong



Joined: 08 Nov 2008
Posts: 165
kalambong 24 Jan 2009, 16:34
edfed: Mind if you keep us updated on your progress from time to time?
Post 24 Jan 2009, 16:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20535
Location: In your JS exploiting you and your system
revolution 24 Jan 2009, 16:41
edfed wrote:
... to run many assemblers together to do a sort of AI with real time compilation of asm source.
Ooh, I just saw this response now.

You should consider the executable code as shareable, only the data needs to change. Much like the DLL system in Windows, you only need one copy of the code. So making it small would not be such an important goal, more important would be to make it thread safe.
Post 24 Jan 2009, 16:41
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 25 Jan 2009, 16:33
You mean something like a self-compiler based on different data? (whatever the AI gets with sensors or whatever)

I think you'll need to code your own algo that does it (there's already one for 'data', albeit not very efficient, called Neural Networking). You need your own algo to do what you want and generate the code YOU need -- or do you expect the AI to write the source code FIRST and then compile it? Why?

_________________
Previously known as The_Grey_Beast
Post 25 Jan 2009, 16:33
View user's profile Send private message Reply with quote
Coddy41



Joined: 18 Jan 2009
Posts: 384
Location: Ohio, USA
Coddy41 25 Jan 2009, 19:44
Ive seen code go as low as 12byte here http://board.flatassembler.net/topic.php?t=9147 so, I just put over 4 and below 8.
Post 25 Jan 2009, 19:44
View user's profile Send private message Visit poster's website Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1159
Azu 01 Mar 2009, 23:32
Those are compilers? o_O



BTW wouldn't that be "after 8 and before 16"?
Post 01 Mar 2009, 23:32
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.