Answer by dig for What is %gs in Assembly
In the AT&T style assembly languages, the percent sigil generally indicates a register. In x86 family processors from 386 onwards, GS is one of the so-called segment registers. However, in...
View ArticleAnswer by Necrolis for What is %gs in Assembly
GS is a segment register, its use in linux can be read up on here (its basically used for per thread data).mov %gs:0x14,%eaxxor %gs:0x14,%eaxthis code is used to validate that the stack hasn't exploded...
View ArticleAnswer by Sergey Benner for What is %gs in Assembly
ES, FS, GS: Extra Segment RegistersCan be used as extra segment registers; also used in special instructions that span segments (like string copies).taken from here...
View ArticleWhat is %gs in Assembly
void return_input (void){ char array[30]; gets (array); printf("%s\n", array); }After compiling it in gcc, this function is converted to the following Assembly code:push %ebpmov %esp,%ebpsub...
View Article
More Pages to Explore .....