Ok, i know (a bit) assembly. I know how i can make a language (that's not hard). But how the hell can i write a program that makes .exe files?
I mean, what i have to do is to take the text from the .programming_language file, and turn it to and .exe. How do i make an .exe? I DON'T want to convert to .asm and compile it again, i want to make the compiler myself.
Anybody know how?
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
That requires you to write an assembler, which is a program that takes assembly source code and converts it to it's hexadecimal representation. I wouldn't know the first thing about writing an assembler, but I know there are several open source assemblers out there you can look at.
This is one of the few places where I find "LOL" to be highly appropriate. The assembler should be trivial compared to the compiler and language semantics.Originally Posted by Davide
Wow I changed my sig!
This statement is really interesting. First you say that making a programming language is easy, and just after that, you ask "how to make an .exe file?" (the really easy part). I assume that you have absolutely no idea of what a file really is. Have you heard about file headers, which describe the file information?
Another thing is, you must know more than a bit of assembly to make a programming language. You must really know assembly, architectures, the differences between them, parsing (tokenization, syntactic analysis, parse trees), compilation, optimizations, file formats, operating systems... just to name a few things. You must have a very good knowledge about programming, the most single mistake in compilation immediately leads to an invalid executable.
An interpreted programming language is completly different, it doesnt require an exe, and guess what? I managed to make one, it's just that i don't like it like that.
A bit doesn't describes all my experience with assembly.
I found my answer guys btw, thanks for your help.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
Glad that you found your answer Davide, I'd be quite interesting to see a bit of your language just from curioisity.
I wrote a programming language (scripts) in delphi for a project im still working on
its very simple but adequate for its job,
originally everything was done as functions, however i have taught the compiler to handle + - * / and brackets
since it only uses floating point numbers and the Scripts aren't used outside the application all function are pre-coded into the application
although its very limited it is the basis of a fully functional language
I am working on a more advanced version for another project
@x42: Less than five minutes on Google got me this:
Processors
Intel
http://www.intel.com/Assets/PDF/manual/253666.pdf
http://www.intel.com/Assets/PDF/manual/253667.pdf
MIPS
http://dkrizanc.web.wesleyan.edu/cou.../MIPS_Vol2.pdf
ARM
http://simplemachines.it/doc/arm_inst.pdf
SPARC
http://www.sparc.org/standards/V8.pdf
Interpreted Languages
Java
Java bytecode - Wikipedia, the free encyclopedia
Java bytecode:
Python
31.12. dis
Ruby
YARV: Yet another RubyVM / Instruction Table
sudo rm -rf /
I think that might be another one of those "LOL" moments
Seriously, x42, you need to spend some time looking on the Internet before you make claims like that. It's misleading.
sudo rm -rf /
This is like "he got owned". I have 6 big intel manuals that i have requested long time ago for free, 2 of them were posted by dargueta. It's pretty obvious that each processor have manuals that covers everything we need to know about them.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks