PDA

Click to See Complete Forum and Search --> : Machine Code


Sam Finch
Oct 21st, 2000, 10:05 PM
I'm working on a programming language at the moment, (a fairly specialized one for displaying maths) and at some point we're going to need a compiler, which gives us 2 options

Buy One
Make One


Buying and licencing one would be a bit complicated or expensive, so I'm looking at the second option.

We Want the programs to be Standard Dlls, which export 4 or 5 functions and make calls to a single tools dll (kinda like the VB Runtimes, but just one dll does the whole thing)

The tools dll will be passed pointers to functions in the program dll and will call these functions (not all of which will be exported)


So, imagine I get visited by the fairy god programmer who gives me a big brain that can write good ASM Code.

How easy would it be to write machine code directly to a file (1s and 0s) which would work as a standard dll? (ie write an ASM compiler that can write simple dll files)

makai
Oct 28th, 2000, 11:49 PM
well you would write your language using a store bought assembler that would compile - then link your exe or dll

the dll's would be your property and you would pay no royalties to whoever made the assembler

better yet write the whole darn language in C
then it could be more platform independent

write your own i/o includes etc in assembly if you want
why make life difficult for yourself