object.error: Privileged Instruction

Maxim Fomin maxim at maxim-fomin.ru
Sat Sep 22 12:19:27 PDT 2012


Privilege instruction is an assembly instruction which can be 
executed only at a certain executive process context, typically 
os kernel. AFAIK assert(false) was claimed to be implemented by 
dmd as a halt instruction, which is privileged one.

However, compiled code shows that dmd generates int 3 instruction 
for assert(false) statement and 61_6F_65_75 which is binary 
representation of "aoeu" for assert(false, "aoeu") statement and 
the latter is interpreted as privileged i/o instruction.


More information about the Digitalmars-d-learn mailing list