arm64_test.cpp
1
2 #include "stdlib.h"
3 #include "stdio.h"
4 #include "string.h"
5 #include "unistd.h"
6 #include "fcntl.h"
7 #include "pthread.h"
8 #include "malloc.h"
9 #include <sys/mman.h> // Needed for mlockall()
10 #include "stdint.h"
11 #include <sched.h>
12 #include <time.h>
13
14 #define SYSFS_GPIO_EXPORT "/sys/class/gpio/export"
15 #define SYSFS_GPIO_RST_PIN_VAL...
test-template
2020/12/15
2020/01/09
next japan travle
https://chubu.letsgojp.com/archives/412124/?fbclid=IwAR0r2RSdf6yhgvyqMDs6Ybgt1bCA2d16rHP4ZV1UgGKS7KQ0_-UIl3jsb50
https://mimihan.tw/miyama-kyo...
2019/12/20
[自助] 立山 - 黑部

2020/05/06 ~ 11
0506 (3)台灣 - 名古屋, 住名古屋, Daiwa Roynet Hotel Nagoya Taiko dori Side ダイワロイネットホテル名古屋太閤通口
0506 (3)台灣 - 名古屋-高山 (2hr 20min), 住高山
0507 名古屋 - 高山 (JR高山本線, 2hr 20min) - 合掌村 (搭乘濃飛巴士 - 50min) - 高山, 住高山, Super Hotel Hida Takayama
スーパーホテル飛騨高山
0508 高山 (小京都) - 富山 (90min), 住富山, APA Hotel Toyama-Ekimae アパホテル 富山駅前
0509 (6) 立山黑部, 電鐵富山 - 立山,...
2018/04/03
cfront 轉出來的 c code
hello.C
1 #include <stream.h>
39
40 class A
41 {
42 public:
43 virtual void foo(int a = 0)
44 {
45 printf("A %d\n", a);
46 }
47 };
48
49 class B : public A
50 {
51 public:
52 virtual void foo(int a = 1)
53 { printf("B %d\n", a); }
54 };
55
56 int main(int argc, char *argv[])
57 {
58 A *p = new B();p->foo();
59 return 0;
60 }
hello..c 為 cfront...
2017/09/20
rpi2 jtag

How To JTAG Raspberry Pi 2
Preparing Raspberry PI for JTAG Debugging
Here are the GPIO numbers for the current revision:
JTAG pin"ALT4" mode"ALT5" mode
TDIGPIO26GPIO4
TDOGPIO24GPIO5
TMSGPIO27GPIO12
TCKGPIO25GPIO13
RTCKGPIO23GPIO6
TRSTGPIO22N/A
樹莓派 2 gpio pin
JTAG RPi2 GPIO gpio number
VREF* Pin 1 3.3 v
nTRST Pin 15...
2017/06/01
產生一個 elf object file, 讓 gcc link 出 elf 執行檔案
op2.c
1 //#include <stdio.h>
2
3 int main()
4 {
5 printf("1+2 = %d\n", 1+2);
6 }
op2.S 由 simple_compier 產生。
op2.S
1 .section .rodata
2 LC1:
3 .string "1+2 = %d\n"
4 .text
5 .global main
6 .type main, @function
7 main:
8 pushl %ebp
9 movl %esp, %ebp
10 subl $0, %esp # reserve local variable
11 movl $1, %eax
12 ADD $2, %eax
13 pushl %eax
14 popl %eax
15 pushl %eax
16 pushl $LC1
17 call printf
18 addl...
2017/04/08
pascal & gdb
pas_gdb
1 descent@deb:pascal$ gdb h
2 GNU gdb (Debian 7.11.1-2) 7.11.1
3 Copyright (C) 2016 Free Software Foundation, Inc.
4 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
5 This is free software: you are free to change and redistribute it.
6 There is NO WARRANTY, to the extent permitted by law. Type "show copying"
7 and "show warranty" for details.
8 This GDB was configured as "x86_64-linux-gnu".
...
訂閱:
文章 (Atom)