#pragma pack(1) in c
adds r31 = r32, 4
adds r30 = r32 8 ;;
ld4 r31 = [r31]
ld4 r30 = [r30] ;;
add r31 = r30, r31 ;;
st4 [r32] = r31
br.ret.sptk.many rp
#pragma pack(1) in c
adds r31 = r32, 4
adds r30 = r32 8 ;;
ld4 r31 = [r31]
ld4 r30 = [r30] ;;
add r31 = r30, r31 ;;
st4 [r32] = r31
br.ret.sptk.many rp
#pragma pack(1) in c
#include <stdio.h>
struct a {
char one;
char two[2];
char eight[8];
char four[4];
};
struct b {
char one;
short two;
long int eight;
int four;
};
int main(int argc, char** argv) {
struct a twoa[2] = {};
struct b twob[2] = {};
printf("sizeof(struct a): %i, sizeof(struct b): %in", sizeof(struct a), sizeof(struct b));
printf("sizeof(twoa): %i, sizeof(twob): %in", sizeof(twoa), sizeof(twob));
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us