flat assembler
Message board for the users of flat assembler.

Index > Heap > fasm integrate with database (all includes, structures)

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8902
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
just have an idea,
why not, fasm integrate its def into database?
so, when the assembler assemble the executable, it would use the def s' from the database instead of plain text files like currently we saw in zillion compilers.

what you say?

eg.
Code:
WNDCLASS
typedef struct {
    dd style;
    dd lpfnWndProc;
    dd cbClsExtra;
    dd cbWndExtra;
    dd hInstance;
    dd hIcon;
    dd hCursor;
    dd hbrBackground;
    dd lpszMenuName;
    dd lpszClassName;
} WNDCLASS, *PWNDCLASS
    


Code:
group_id, group_type, group_name
1,struct,WNDCLASS

item_id, item_parent, item_size, item_name
1,1(group_id),4,style
2,1,4,lpfnWndProc
....
    


the cons:
slow. (of course)

pros:
i think somehow more easier to manage. instead of multiple files, we could use only 1 sqlite database.

i think last time i heard tomasz wanna do create a database sqlite like stuff.....
Post 31 Aug 2008, 07:31
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
cons:
- difficult manage, needs an external program (other than a text editor) to edit the database.
- if the single database file gets corrupted you have to rebuild everything.
- user can't "see" the structures and things, search and replace not easy for people not familiar with databases.
Post 31 Aug 2008, 08:23
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: 17279
Location: In your JS exploiting you and your system
revolution
revolution wrote:
- if the single database file gets corrupted you have to rebuild everything.
I know this for a fact, because my firefox 3 just corrupted my bookmarks DB this morning. And guess what, firefox wouldn't run at all, hangs. So I had to reset everything to default and rebuild from scratch. If instead it used simple text files then a quick restart (and perhaps a little look-see at the text bookmark file to see what is wrong) and we're in business again. Much simpler to have a text file IMO.
Post 31 Aug 2008, 08:32
View user's profile Send private message Visit poster's website 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.