Hi, Anton, For a simple example, I took the machine assembly code generated by llc and with a little manual change on the assebmly code (the way how llc generates .text segment is not accepted by MASM), it is able to be assembled and linked by MASM. And it runs. Haven't tried it on NASM yet. I am sure that you've run into many problems when efforts were carried out to implement the Intel ASM printer between version 1.6 and 1.7. I'd appreciated it if you could point me to any document with regard to relavent problems at that time. Probably I don't need a fully functional production quality assembler for my purpose. If I could find out that the gap between the current llc and what I need is not huge, I would like to enhance the llc Intel ASM printer by myself. Thanks, Bengu On Thu, Jan 28, 2010 at 11:41 AM, Anton Korobeynikov < anton at korobeynikov.info> wrote:> Hello > > > Does anybody have an idea of roughly how much effort is required to make > > intel asm printer to be usable? If it is within weeks, probably I can > give > > it a try. > The required efforts equal to ones required to write new assembler. > "Too weak to be usable" means "it's not possible to represent many > important constructs with masm/nasm/fasm". > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100202/7d44d411/attachment.html>
Anton Korobeynikov
2010-Feb-03 03:05 UTC
[LLVMdev] llc generated machine assembly code for NASM
Hello> I am sure that you've run into many problems when efforts were carried out > to implement the Intel ASM printer between version 1.6 and 1.7. I'd > appreciated it if you could point me to any document with regard to relavent > problems at that time.I don't have such document. Just grab some non-trivial c++ app (with several source files) and try to generate an assembler. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Anton Korobeynikov
2010-Feb-03 03:06 UTC
[LLVMdev] llc generated machine assembly code for NASM
>> I am sure that you've run into many problems when efforts were carried out >> to implement the Intel ASM printer between version 1.6 and 1.7. I'd >> appreciated it if you could point me to any document with regard to relavent >> problems at that time. > I don't have such document. > Just grab some non-trivial c++ app (with several source files) and try > to generate an assembler.And I should say that trivial examples indeed worked in the past. Something larger than "hello world" - not. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Apparently Analagous Threads
- [LLVMdev] llc generated machine assembly code for NASM
- [LLVMdev] llc generated machine assembly code for NASM
- [LLVMdev] llc generated machine assembly code for NASM
- [LLVMdev] llc generated machine assembly code for NASM
- [LLVMdev] llc generated machine assembly code for NASM