Live data from Hacker News

Asm-declaration – Embed assembly language code within a C++ program (2017)

en.cppreference.com

1–10 of 53 posts

Re: Asm-declaration – Embed assembly language code within a C++ program (2017)

#3
I don't see anything on that page referencing C++20. Am I missing something?

On a related note, I always find the official docs for GCC inline assembly are insufficient for figuring out what I am trying to do. I nearly always have to resort to dumb trial and error. I was just recently planning to write some docs of my own on the subject. Not tutorial docs, but reference docs.

Re: Asm-declaration – Embed assembly language code within a C++ program (2017)

#6
Lots of languages have inline assembly. Pascal does:

- Free Pascal: https://www.freepascal.org/docs-html/prog/progch3.html#progs...

- Delphi: http://docwiki.embarcadero.com/RADStudio/Rio/en/Inline_Assem...

You can even do assembly in batch files via Debug if you really want to:

https://thestarman.pcministry.com/asm/debug/debug2.htm

https://www.robvanderwoude.com/debug.php

Re: Asm-declaration – Embed assembly language code within a C++ program (2017)

#9

Lots of languages have inline assembly. Pascal does: - Free Pascal: https://www.freepascal.org/docs-html/prog/progch3.html#progs... - Delphi: http://docwiki.embarcadero.com/RADStudio/Rio/en/Inline_Assem... You can even do assembly in batch files via Debug if you really want to: https://thestarman.pcministry.com/asm/debug/debug2.htm https://www.robvanderwoude.com/debug.php

Perl's Inline::ASM is pretty neat. https://metacpan.org/pod/distribution/Inline-ASM/ASM.pod

Re: Asm-declaration – Embed assembly language code within a C++ program (2017)

#10

Lots of languages have inline assembly. Pascal does: - Free Pascal: https://www.freepascal.org/docs-html/prog/progch3.html#progs... - Delphi: http://docwiki.embarcadero.com/RADStudio/Rio/en/Inline_Assem... You can even do assembly in batch files via Debug if you really want to: https://thestarman.pcministry.com/asm/debug/debug2.htm https://www.robvanderwoude.com/debug.php

D has a very nice inline assembler (assuming you're on a supporter platform, if not then you get to use the standard gnu style)
Post reply on HN