Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: May 1, 2024, 9:46 pm

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Including Assembly into C++
#6
RE: Including Assembly into C++
(November 28, 2019 at 5:26 am)LastPoet Wrote:
(November 28, 2019 at 5:06 am)Alex K Wrote: Wasn't there a really simple command for inline assembly inside the .cpp which would even allow using the variables from the c++ namespace directly in the assembly code?

There is. It's the "asm" command. It is heavily platform dependent, given the fast progress of CPU's. Usefull at some specific applications. In my old job, there was an old table cutting machine, that cutted plastic with a shape you could export from coreldraw, but the software was not supported. So I used a few pieces of code to bootstrap that with asm. I could only use it in an old processor, but it worked like a charm.
I think using those inline assembly extensions just makes things more compicated, since then, at least in GCC, you can't read from and write into the same variable.
Reply



Messages In This Thread
Including Assembly into C++ - by FlatAssembler - November 27, 2019 at 3:08 am
RE: Including Assembly into C++ - by ThinkingIsThinking - November 27, 2019 at 5:39 pm
RE: Including Assembly into C++ - by FlatAssembler - November 28, 2019 at 12:28 am
RE: Including Assembly into C++ - by Alex K - November 28, 2019 at 5:06 am
RE: Including Assembly into C++ - by LastPoet - November 28, 2019 at 5:26 am
RE: Including Assembly into C++ - by FlatAssembler - November 28, 2019 at 5:50 am
RE: Including Assembly into C++ - by LastPoet - November 28, 2019 at 10:51 am
RE: Including Assembly into C++ - by FlatAssembler - November 28, 2019 at 12:46 pm
RE: Including Assembly into C++ - by ThinkingIsThinking - December 2, 2019 at 10:22 am
RE: Including Assembly into C++ - by LastPoet - December 2, 2019 at 5:07 pm
RE: Including Assembly into C++ - by FlatAssembler - December 4, 2019 at 6:29 am
RE: Including Assembly into C++ - by Alex K - November 28, 2019 at 10:56 am
RE: Including Assembly into C++ - by LastPoet - November 28, 2019 at 3:19 pm
RE: Including Assembly into C++ - by FlatAssembler - December 1, 2019 at 7:06 am
RE: Including Assembly into C++ - by ThinkingIsThinking - December 4, 2019 at 6:10 am

Possibly Related Threads...
Thread Author Replies Views Last Post
  Microsoft to dump it's computers into the sea. Succubus 26 3784 June 8, 2018 at 12:25 pm
Last Post: The Grand Nudger
  Anyone into Android programming? emjay 97 18431 September 20, 2015 at 6:50 am
Last Post: bennyboy
  At what time do the human race turn into robots Rinnard 4 1227 January 13, 2014 at 5:10 pm
Last Post: Whateverist



Users browsing this thread: 1 Guest(s)