Search notes:

cl: inline assembler

The inline assembler is not available anymore for x64 executables.
#include <stdio.h>

int func() {

  //
  // In x86 calling convention, the return value
  // is passed using the eax register (in x64, it
  // is rax).
  // The return value of func is 42
  //
     __asm mov eax, 42;
}


int main() {
    printf("func returned %d\n", func());
}
Github repository about-cl, path: /inline-assembler/mov-eax.c

See also

cl

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759561868, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/Visual-Studio/cl/inline-assembler/index(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78