Nilesh Chakraborty wrote: > Hi, > > I've half-written a C compiler using Jack W. Crenshaw's "Let's Build a > Compiler" tutorial series. Writing the compiler is made easy by this > book, but I've hit a dead end on how to actually create an executable! > The compiler outputs assembly instructions, which I may feed into a > 3rd party assembler and get the executable file. But, if I want to > write my own assembler, how can do it? Pardon me if this is a bit > off-topic. > > Thanks, > Regards, > > Nilesh Chakraborty
Convert the assembler instructions into the appropriate opcodes for the architecture you are targeting. You will also have to target the specific OS as well for whatever it expects executables to look like. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
