Machine code: Difference between revisions

Content added Content deleted
(+ D entry)
(Note to the D entry)
Line 147: Line 147:
=={{header|D}}==
=={{header|D}}==
In D you usually use a nicer <code>asm {}</code> statement for similar purposes.
In D you usually use a nicer <code>asm {}</code> statement for similar purposes.

Generally new operating systems forbid execution of any address unless it's known to contain executable code. This is a basic version that unlike the C entry executes from array memory. This may crash on some operating systems.
This is a basic versi
<lang d>int test(in int a, in int b) pure nothrow @nogc {
<lang d>int test(in int a, in int b) pure nothrow @nogc {
/*
/*