in reply to Re^2: Assembly language
in thread Assembly language

It became hard to write assembly code because CPU evolved to be efficient targets for compilers.

But self modifying machine code can do miracles if it comes to speed, not sure if C is capable of this.

Replies are listed 'Best First'.
Re^4: Assembly language
by LanX (Saint) on Dec 16, 2019 at 17:40 UTC
    > But self modifying machine code can do miracles

    Couldn't log in when I wrote this.

    Wanted to add that self modifying code isn't that easy anymore because modern processors limit these possibilities for security reasons. (JIT compiling is on another page)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Re^4: Assembly language
by afoken (Chancellor) on Dec 17, 2019 at 22:44 UTC
    But self modifying machine code can do miracles

    Try writing self-modifying code into a ROM ...

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Well ... Try JIT compiling in a ROM.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice