libraries:machine_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
libraries:machine_code [2024-03-06 21:03] – Condense description and link MCode guide page geeklibraries:machine_code [2024-03-07 13:46] (current) – Remove subheader to improve embedded page appearance geek
Line 2: Line 2:
  
 Machine Code (referred to as "mcode") is the process of embedding code written in a different language (usually C) into AHK code, and then calling it with the ''DllCall()'' function. MCode is especially useful for performance critical operations like physics calculation or image processing, since compiled C code is much faster than the compiled C++ code which is used to interpret regular AHK code. However, due to the unique constraints of code being executed inside of AHK by ''DllCall()'', special tools are needed to compile any old C/C++ code into MCode. For guidance on how to use Machine Code tools, see the [[guides:machine_code|Machine Code guide page]]. Machine Code (referred to as "mcode") is the process of embedding code written in a different language (usually C) into AHK code, and then calling it with the ''DllCall()'' function. MCode is especially useful for performance critical operations like physics calculation or image processing, since compiled C code is much faster than the compiled C++ code which is used to interpret regular AHK code. However, due to the unique constraints of code being executed inside of AHK by ''DllCall()'', special tools are needed to compile any old C/C++ code into MCode. For guidance on how to use Machine Code tools, see the [[guides:machine_code|Machine Code guide page]].
- 
-===== Tools/libraries ===== 
  
   * [[https://www.autohotkey.com/boards/viewtopic.php?t=4642|MCode4GCC by joedf]], the classic machine code generator   * [[https://www.autohotkey.com/boards/viewtopic.php?t=4642|MCode4GCC by joedf]], the classic machine code generator
   * [[libraries:machine_code:mcl]] - The next generation of machine code tooling for AutoHotkey - by [[user:CloakerSmoker]] and [[user:geek]]   * [[libraries:machine_code:mcl]] - The next generation of machine code tooling for AutoHotkey - by [[user:CloakerSmoker]] and [[user:geek]]