mruby本体の準備
$ export ARDUINO_ESP32_ROOT=$HOME/Documents/Arduino/hardware/espressif/esp32
$ cd $ARDUINO_ESP32_ROOT
$ mkdir mruby
$ cd mruby
$ git clone https://github.com/mruby/mruby.git
$ cd mruby
$ git checkout 1.4.1
mruby本体の準備
$ export ARDUINO_ESP32_ROOT=$HOME/Documents/Arduino/hardware/espressif/esp32
$ cd $ARDUINO_ESP32_ROOT
$ mkdir mruby
$ cd mruby
$ git clone https://github.com/mruby/mruby.git
$ cd mruby
$ git checkout 1.4.1
# /etc/nsswitch.conf | |
# | |
# Example configuration of GNU Name Service Switch functionality. | |
# If you have the `glibc-doc-reference' and `info' packages installed, try: | |
# `info libc "Name Service Switch"' for information about this file. | |
passwd: compat | |
group: compat | |
shadow: compat | |
gshadow: files |
#include <stdio.h> | |
#include "softfloat.h" | |
int | |
main (void) { | |
float32_t a = {0x3F800000}; | |
float32_t b = {0x40000000}; | |
float32_t c = f32_add(a, b); | |
fprintf(stderr, "0x%x (%ld) + 0x%x (%ld) = 0x%x (%ld)\n", |
#include <stdio.h> | |
#include "softfloat.h" | |
int | |
main (void) { | |
float32_t a = ui32_to_f32(0x3F800000); /* 1.0 */ | |
float32_t b = ui32_to_f32(0x40000000); /* 2.0 */ | |
float32_t c = f32_add(a, b); | |
fprintf(stderr, "0x%lx + 0x%lx = 0x%lx\n", |
#include <stdio.h> | |
#include <stdint.h> | |
int | |
main (void) { | |
float a = 1.0; | |
float b = 2.0; | |
float c = a + b; | |
fprintf(stderr, "sizeof(float): %d\n", sizeof(float)); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <netinet/tcp.h> |
U-Boot SPL 2016.11 (Dec 06 2016 - 07:54:39) | |
DRAM: 512 MiB | |
Trying to boot from MMC1 | |
U-Boot 2016.11 (Dec 06 2016 - 07:54:39 +0000) Allwinner Technology | |
CPU: Allwinner H3 (SUN8I 1680) | |
Model: Xunlong Orange Pi One | |
DRAM: 512 MiB |
package main | |
/* | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
#include <limits.h> | |
#include <nss.h> | |
#include <sys/types.h> | |
#include <netdb.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <net/if.h> | |
#include <stdlib.h> |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <errno.h> |