Page 3 of 4

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 11:30
by nnnik
Nice
I should share my NASM code too.

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 11:36
by nnnik
Image

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 11:41
by guest3456
its too bad bentschi's online generator is gone

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 12:00
by nnnik
Well he has stated something in the German forum a while ago.
I will sum it up for you:
"I cannot keep it the way it is because I have a slower connection now."
And also he said something about using GCC in an Web server that uses exec to compile the program..

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 12:01
by guest3456
joedf's generator will probably be the new solution

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 12:17
by kon
Yeah, it looks very nice. I plan on using it. :)

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 13:51
by joedf
Contribute any ideas, commits, etc. It has bugged me a quite while, that all online generators are now gone...
"Let's just make it offline, and open source for everyone." ;)

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 16:34
by nnnik
There was an offline generator already I think.

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 16:39
by joedf
Yes, I believe so... But I think it was for ahk 1.0 or something, or maybe visual studio... I don't remember :P

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 16 Sep 2014, 16:42
by nnnik
Yeah Visual Studio.

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 19 Sep 2014, 12:40
by joedf
Hi, nnnik
Could you add MCode4GCC and MCodeGen to your tutorial, especially since the one suggested (bentschi's) is now offline?
https://github.com/joedf/MCode4GCC
http://www.autohotkey.com/board/topic/5 ... nto-mcode/

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 20 Sep 2014, 01:52
by nnnik
Oh lol I thought you did that already :D
BTW make a topic about your compiler :P

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 20 Sep 2014, 21:11
by joedf

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 08 Nov 2014, 02:58
by nnnik
I have figured a way of making all of the code work using output from .obj files.

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 08 Nov 2014, 09:53
by geek
I have the visual studio machine code compiler somewhere. It works very well, but I'm really bad at C/C++ level pointer management

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 28 Nov 2014, 07:22
by nnnik
http://www.symantec.com/connect/article ... s-part-one
That's the best source I have found.

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 25 Mar 2015, 12:43
by tic
Hey, what needs changing to compile for x64 as well as x86?
For the example given

Code: Select all

int stringlen(char *str)
{
  int i=0;
  for (; str[i]!=0; i++);
  return i;
}
I get

Code: Select all

2,x86:gDkAdBpIg8EBMcAPH0QAAEiDwQGDwAGAef8AdfPzwzHAw5CQkJCQkJCQkJCQkJCQ
Would save me looking through the source if someone knows. Many thanks

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 25 Mar 2015, 14:03
by nnnik
Which compiler do you use?

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 25 Mar 2015, 14:23
by tic
I used to use VC++ but am trying now with x86_64-w64-mingw32-gcc-4.9.2.exe

Re: MCode Tutorial (Compiled Code in AHK)

Posted: 25 Mar 2015, 14:37
by nnnik
I was never able to compile x64 with VC++. Gave up on that.