Updated Readme.
This commit is contained in:
parent
4a46808842
commit
2f06d2ab01
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ void * gpioA = (void *)0x40010800;
|
|||
|
||||
int main(void)
|
||||
{
|
||||
add(5);
|
||||
set(5);
|
||||
invert(0x20);
|
||||
return 0;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ int invert(int x){ return ~x }
|
|||
```
|
||||
|
||||
Ensuite je lance la commande suivante pour compiler le tout dans un niveau d'optimisation choisi :
|
||||
```bash
|
||||
```shell
|
||||
arm-bibe-eabi-gcc -OX -c test.c -o test.o
|
||||
```
|
||||
|
||||
|
@ -40,7 +40,7 @@ arm-bibe-eabi-gcc -OX -c test.c -o test.o
|
|||
|-O2|Maximale|
|
||||
|
||||
Et enfin pour voir le résultat en assembler dans la le terminal :
|
||||
```bash
|
||||
```shell
|
||||
arm-none-eabi-objdump -D test.o
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue