Assembler written in assembly language?
Firstly, I am not sure if this is the best place to ask the query. If no, please move it to the correct subforum.
Now, coming to my doubt, an assembler converts assembly language into opcodes, right? Now, to perform the conversion, assembler needs a certain algorithm. Whats the algorithm written in? Because if its written in a certain language, wouldnt we need assembler again to convert this algorithm to opcodes? Doesnt this lead to an infinite loop? Where does this process stop?
Nikhar
Junior Poster in Training
76 posts since Feb 2009
Reputation Points: 29
Solved Threads: 0
Thanks for the reply. :)
btw, when you say it "'must' have been written", are you too sure about it, or are you not too sure about it. If you are sure, could you possible give an example of the compiler/assembler written in machine language and another compiler/assembler which uses the machine language compiler/assembler to compile itself? (hope this does not sound too confusing :P)
Thanks.
Nikhar
Junior Poster in Training
76 posts since Feb 2009
Reputation Points: 29
Solved Threads: 0