flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > generate data structures |
Author |
|
HaHaAnonymous 18 May 2013, 16:09
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 20:31; edited 1 time in total |
|||
18 May 2013, 16:09 |
|
TmX 18 May 2013, 17:08
Do you mean "how to assemble fasm source via netbeans"?
I think the easiest (?) way is by using makefile https://cnd.netbeans.org/cnd-tutorial.html#ExistingMakefile https://cnd.netbeans.org/cnd-tutorial.html#CreateMakefileProject I do occasionally use NetBeans, but only for Java-related project. Never tried it personally. |
|||
18 May 2013, 17:08 |
|
HaHaAnonymous 18 May 2013, 17:37
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 20:30; edited 1 time in total |
|||
18 May 2013, 17:37 |
|
TmX 19 May 2013, 02:31
HaHaAnonymous wrote: To compile projects are real nightmare if you didn't create them from scratch. Makefile here, makefile there, wait some hours, install here, install there, ops target system is not the same, wait more hours. Then blame the UNIX folks who invented make. The legacy is keep going until now. Makefile has at least 2 advantage though: 1. Separate compilation. If a file is not updated, then it will not be re-compiled. This can reduce compilation time, which is especially helpful in building large softwares. 2. Parallel execution. More CPU cores to utilise = shorter compilation time. HaHaAnonymous wrote:
At least this is possible in Java. Assume that you don't use 3rd party libraries, then all you have to do is compile the file that contains the main() method. And the compiler will handle the rest for you. |
|||
19 May 2013, 02:31 |
|
AsmGuru62 19 May 2013, 10:57
A lot of type-casting in a C++ project is usually a sign of an improper design.
|
|||
19 May 2013, 10:57 |
|
typedef 19 May 2013, 15:41
HaHaAnonymous wrote:
it depends on what kind of developer you are. If you don't know your own compiler then.. OOPS ! |
|||
19 May 2013, 15:41 |
|
typedef 19 May 2013, 15:44
edfed wrote: how can i tell netbeans to use fasm to compile my data structures??? Just make a tool to generate your structures and save them into .bins then load then whenever needed or reserve some space in the exe then inject them at run time using Ollydbg. Many ways to skin this cat here |
|||
19 May 2013, 15:44 |
|
HaHaAnonymous 19 May 2013, 16:17
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 20:25; edited 1 time in total |
|||
19 May 2013, 16:17 |
|
rugxulo 23 May 2013, 21:57
edfed wrote: i am working on fool concept implementation in c++ (sorry i don't code a lot in fasm these times, planning to know c++ a little better for food). There's nothing wrong (and certainly not surprising) in someone using C++ these days. Heck, I just noticed on Amazon.com that Bjarne's 4th edition book was just published a few days ago (though 1368 pages, ouch! poor poor trees, heheh). Quote:
A lot of languages struggle with types, esp. C-based ones. I think this is a side effect of being directly inspired by B, which was inspired by BCPL. Back then, everything was (basically) an integer. Strong typing is supposed to prevent errors (or at least catch them at compile time). It's also supposed to be more efficient at runtime as you only use what you need. What sounds like your biggest struggle here is declaring types, not just using them. There are tools (e.g. cdecl) that will help you understand what types you want or are trying to use. Though, quite honestly, you may have better luck with more strict languages. IIRC, languages like ML and Modula-3 claimed to have superior type systems, but I'm not really an expert (esp. on the former). Quote:
C++, same as C, doesn't have proper modules, even if they do mostly shun the preprocessor. If you want a language that does, you won't be using C++. (There are workarounds, of course, and good [simple?] design can avoid most of the pain. Sometimes I think Makefiles make things 1000x worse than just compiling from scratch: slower but at least it doesn't break.) In fact, since you're mentioning data structures, you know that Niklaus Wirth was considered a so-called expert on that? He even wrote a Pascal-based book about it (newer version is freely available online as .PDF but now using Oberon language). In short, you may have to study GNUmakefile syntax a bit. It's not too hard, but sometimes I think we overthink things. For simplicity, you may wish to design things in a modular language first (and/or just link it into your main C++ project, many of them can do so via cdecl libs). Sorry if this isn't more directly helpful. |
|||
23 May 2013, 21:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.