* ELF
@ 2021-02-28 17:26 Renaud Lelièvre
0 siblings, 0 replies; only message in thread
From: Renaud Lelièvre @ 2021-02-28 17:26 UTC (permalink / raw)
To: gcc
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
Hi, i work on a windows 10 development platform and I will use the portable stdint and all and all I need. Mr. Ian Lance Taylor (Google) are not possible for my company.
Renaud Lelièvre
Montréal
[-- Attachment #2: refStep.c --]
[-- Type: text/plain, Size: 592 bytes --]
#include <stdio.h>
#include <stdlib.h>
struct microFields {
unsigned int addr:28;
unsigned int cond:2;
unsigned int wr:1;
unsigned int rd:1;
unsigned int mar:1;
unsigned int alu:3;
unsigned int b:20;
unsigned int a:20;
unsigned int c:20;
};
union micro {
unsigned int microCode;
struct microFields code;
};
int main (void) {
int typeAlu=0x11FE00;
union micro test;
test.microCode = 0x0001c000;
typeAlu = test.code.alu;
printf("%d \n", typeAlu);
return EXIT_SUCCESS;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-28 17:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 17:26 ELF Renaud Lelièvre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).