including assembly in c++

hi everyone there ,
i am using dev c++ as my c++ compiler but i am unable to find out how to include assembly in my code . when i use the asm keyword to include assembly programs there is always an error message.
i am waiting help from anywhere. thanks.

Comments

  • : hi everyone there ,
    : i am using dev c++ as my c++ compiler but i am unable to find out how to include assembly in my code . when i use the asm keyword to include assembly programs there is always an error message.
    : i am waiting help from anywhere. thanks.
    :
    try any of the following:
    __asm
    _asm
    asm

    with a "" or {} after
  • [b][red]This message was edited by stober at 2006-5-29 14:39:33[/red][/b][hr]
    : hi everyone there ,
    : i am using dev c++ as my c++ compiler but i am unable to find out how to include assembly in my code . when i use the asm keyword to include assembly programs there is always an error message.
    : i am waiting help from anywhere. thanks.
    :


    Dev-C++ uses AT&T style assembly. Not nearly as easy as Microsoft compilers. This this:
    http://www-128.ibm.com/developerworks/linux/library/l-ia.html



  • : [b][red]This message was edited by stober at 2006-5-29 14:39:33[/red][/b][hr]
    : : hi everyone there ,
    : : i am using dev c++ as my c++ compiler but i am unable to find out how to include assembly in my code . when i use the asm keyword to include assembly programs there is always an error message.
    : : i am waiting help from anywhere. thanks.
    : :
    :
    :
    : Dev-C++ uses AT&T style assembly. Not nearly as easy as Microsoft compilers. This this:
    : http://www-128.ibm.com/developerworks/linux/library/l-ia.html
    :
    :
    :
    :


    I remeber reading somewhere that if your using iso C++ then the function ASM() or asm() or Asm() should be avalible to you. However ANSI C does not contain a standard way to pass inline assembly

    ps. if you bloodshed.net's dev-cpp then I think if you read the faq it will tell you
  • : : [b][red]This message was edited by stober at 2006-5-29 14:39:33[/red][/b][hr]
    : : : hi everyone there ,
    : : : i am using dev c++ as my c++ compiler but i am unable to find out how to include assembly in my code . when i use the asm keyword to include assembly programs there is always an error message.
    : : : i am waiting help from anywhere. thanks.
    : : :
    : :
    : :
    : : Dev-C++ uses AT&T style assembly. Not nearly as easy as Microsoft compilers. This this:
    : : http://www-128.ibm.com/developerworks/linux/library/l-ia.html
    : :
    : :
    : :
    : :
    :
    :
    : I remeber reading somewhere that if your using iso C++ then the function ASM() or asm() or Asm() should be avalible to you. However ANSI C does not contain a standard way to pass inline assembly
    :
    : ps. if you bloodshed.net's dev-cpp then I think if you read the faq it will tell you
    :


    In C++ it should be asm("") according to the standard.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories