Re: Calling convention for ASM on Linux AMD64

2018-08-18 Thread Sean O'Connor via Digitalmars-d-learn
Okay, cool, thanks for the information. The main reason for using D versus Java for me at the moment is that array slices allow me avoid lots of intermediate buffers that Java is forcing me to use. Also the line count is about 2/3 of Java. Further I can directly embed any assembly language I n

Re: Calling convention for ASM on Linux AMD64

2018-08-17 Thread Eugene Wissner via Digitalmars-d-learn
On Saturday, 18 August 2018 at 06:47:36 UTC, Eugene Wissner wrote: On Saturday, 18 August 2018 at 04:16:11 UTC, Sean O'Connor wrote: What calling convention is used for assembly language in Linux AMD64? Normally the parameters go in fixed order into designated registers. import std.stdio; //

Re: Calling convention for ASM on Linux AMD64

2018-08-17 Thread Eugene Wissner via Digitalmars-d-learn
On Saturday, 18 August 2018 at 04:16:11 UTC, Sean O'Connor wrote: What calling convention is used for assembly language in Linux AMD64? Normally the parameters go in fixed order into designated registers. import std.stdio; // Linux AMD64 float* test(float *x,ulong y){ asm{

Calling convention for ASM on Linux AMD64

2018-08-17 Thread Sean O'Connor via Digitalmars-d-learn
What calling convention is used for assembly language in Linux AMD64? Normally the parameters go in fixed order into designated registers. import std.stdio; // Linux AMD64 float* test(float *x,ulong y){ asm{ naked; align 16; mov RAX,RDI;