This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void foo ( Lista *p ) { | |
// modifica p | |
} | |
int main () { | |
Lista a; | |
// passa "a" como referência | |
foo ( &a ); | |
return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: hello.c | |
#include <stdio.h> | |
int main() { | |
printf("Hello World!"); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.arch armv6 | |
.eabi_attribute 28, 1 | |
.eabi_attribute 20, 1 | |
.eabi_attribute 21, 1 | |
.eabi_attribute 23, 3 | |
.eabi_attribute 24, 1 | |
.eabi_attribute 25, 1 | |
.eabi_attribute 26, 2 | |
.eabi_attribute 30, 6 | |
.eabi_attribute 34, 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ hello.s | |
.text | |
.global _start | |
_start: | |
mov r7,#4 | |
mov r0,#1 | |
ldr r1,=message | |
mov r2,#14 | |
svc #0 | |
mov r7,#1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000: 7f45 4c46 0101 0100 0000 0000 0000 0000 .ELF............ | |
00000010: 0100 2800 0100 0000 0000 0000 0000 0000 ..(............. | |
00000020: 6801 0000 0000 0005 3400 0000 0000 2800 h.......4.....(. | |
00000030: 0900 0800 0470 a0e3 0100 a0e3 1010 9fe5 .....p.......... | |
00000040: 0e20 a0e3 0000 00ef 0170 a0e3 0000 a0e3 . .......p...... | |
00000050: 0000 00ef 0000 0000 4865 6c6c 6f2c 2077 ........Hello, w | |
00000060: 6f72 6c64 210a 4111 0000 0061 6561 6269 orld!.A....aeabi | |
00000070: 0001 0700 0000 0801 0000 0000 0000 0000 ................ | |
00000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | |
00000090: 0000 0000 0300 0100 0000 0000 0000 0000 ................ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install libc6:i386 libncurses5:i386 libxtst6:i386 \ | |
libxft2:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 \ | |
libc6-dev-i386 libxft2 lib32z1 lib32ncurses5 libqt5xml5 liblzma-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$PATH:/opt/intelFPGA_lite/19.1/quartus/bin:/opt/intelFPGA_lite/19.1/nios2eds/bin:/opt/intelFPGA_lite/19.1/modelsim_ase/bin | |
export QSYS_ROOTDIR="/opt/intelFPGA_lite/19.1/quartus/sopc_builder/bin" | |
export QUARTUS_ROOTDIR_OVERRIDE=/opt/intelFPGA_lite/19.1/quartus | |
export QUARTUS_64BIT=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg --add-arquitecture i386 | |
sudo apt update | |
sudo apt install build-essential | |
sudo apt install gcc-multilib g++-multilib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar xvf freetype-2.*.tar.bz2 | |
cd freetype-* | |
./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" | |
make -j8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /opt/intelFPGA_lite/19.1/modelsim_ase/lib32 | |
cp freetype-*/objs/.libs/libfreetype.so* /opt/intelFPGA_lite/19.1/modelsim_ase/lib32 |