standards

Are x86 Assembly Mnemonic standarized?

大憨熊 提交于 2020-12-10 05:47:04
问题 Does the x86 standard include Mnemonics or does it just define the opcodes? If it does not include them, is there another standard for the different assemblers? 回答1: Mnemonics are not standardised and different assemblers use different mnemonics. Some examples: AT&T-style assemblers apply b , w , l , and q suffixes to all mnemonics to indicate operand size. Intel-style assemblers typically indicate this with the keywords byte , word , dword , and qword AT&T-style assemblers recognise cbtw ,

Are dev_t and ino_t required to be integer types?

老子叫甜甜 提交于 2020-12-08 06:39:50
问题 The documentation for glibc stays they are integer types (no narrower than unsigned int), but I'm not finding a standards reference that says they have to be an integer type (see also time_t). So in the end, the question becomes: Is #include <stdio.h> #include <stdint.h> struct stat st; if (stat("somefile", &st) == 0) { printf("%ju %ju\n", (uintmax_t)st.st_dev, (uintmax_t)st.st_ino); } portable. 回答1: POSIX standard requires dev_t to be an integer type and ino_t to be an unsigned integer. dev