What does cltq do in assembly?

Mnemonic cltq is the gas mnemonic for Intel’s cdqe as documented at: https://sourceware.org/binutils/docs/as/i386_002dMnemonics.html The mnemonics are: Convert Long To Quad (cltq): AT&T-style Convert Double to Quad Extend (cdqe): Intel Terminology: quad (aka quad-word) == 8 bytes long (AT&T) == double-word (Intel) == 4 bytes This is one of the few instructions whose GAS name is … Read more

GCC’s assembly output of an empty program on x86, win32

.file “test.c” Commands starting with . are directives to the assembler. This just says this is “file.c”, that information can be exported to the debugging information of the exe. .def ___main; .scl 2; .type 32; .endef .def directives defines a debugging symbol. scl 2 means storage class 2(external storage class) .type 32 says this sumbol … Read more

What is register %eiz?

See Why Does GCC LEA EIZ?: Apparently %eiz is a pseudo-register that just evaluates to zero at all times (like r0 on MIPS). … I eventually found a mailing list post by binutils guru Ian Lance Taylor that reveals the answer. Sometimes GCC inserts NOP instructions into the code stream to ensure proper alignment and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)