Menu

inline assembly

2009-03-08
2012-09-26
  • Jan Zumwalt

    Jan Zumwalt - 2009-03-08

    Can devc do inline assembly?
    Thanks jz

     
    • cpns

      cpns - 2009-03-08

      Yes. The syntax is somewhat arcane.

      http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

      But most reasons people have for resorting to in-line assembly are spurious, so I wonder why you want to do it?

      Clifford

       
    • cpns

      cpns - 2009-03-08

      > I am going back through my archived DOS programs

      MS-DOS uses the 8086 16bit 'real-mode' instruction set. MinGW/GCC is a 32 bit compiler. A lot of what you may have used in-line assembler for in DOS will not work in protected mode. Generally there is a better way to do it using OS services.

      Moreover, in-line assembler is not a standardised part of the C or C++ language, so each compiler implements it differently - another reason to avoid it!

      Clifford

       
    • cpns

      cpns - 2009-03-08

      The link you posted is broken (at this time at least)

       
    • Jan Zumwalt

      Jan Zumwalt - 2009-03-08

      ...I wonder why you want to do it?

      I am going back through my archived DOS programs. I sometimes save a program because of an idea it gave me. Every couple of years I try to expunge un-needed programs.

      Checkout www.c.neatinfo.com

      Thanks for the help

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.