超漢字上で、mrubyを使ってhello worldを表示させる。
Révision | 8614f3d6dcdd825fa12f9112985cf4b7d4461d49 (tree) |
---|---|
l'heure | 2017-06-05 23:18:29 |
Auteur | ornse01 <ornse01@user...> |
Commiter | ornse01 |
update rule and defines for 1.2
@@ -92,8 +92,8 @@ MRuby::CrossBuild.new('pcat') do |conf| | ||
92 | 92 | conf.cc do |cc| |
93 | 93 | cc.command = "#{ENV['GNUi386']}/bin/gcc386" |
94 | 94 | cc.flags = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall" |
95 | - cc.include_paths = ["#{root}/include", "#{ENV['BD']}/include", "../src/posix_include"] | |
96 | - cc.defines = %w(DISABLE_STDIO PCAT) | |
95 | + cc.include_paths = ["#{root}/include", "../src/posix_include", "#{ENV['BD']}/include"] | |
96 | + cc.defines = %w(MRB_DISABLE_STDIO PCAT) | |
97 | 97 | end |
98 | 98 | |
99 | 99 | # Archiver settings |
@@ -107,6 +107,7 @@ MRuby::CrossBuild.new('pcat') do |conf| | ||
107 | 107 | @bins = [] # for disable to link mrbc for target. |
108 | 108 | |
109 | 109 | conf.gem 'mrbgems_port/mruby-brightv-print' |
110 | + conf.gem 'mruby/mrbgems/mruby-compiler' | |
110 | 111 | # |
111 | 112 | # conf.test_runner.command = 'env' |
112 | 113 | # |
@@ -1,6 +1,8 @@ | ||
1 | 1 | #ifndef __LIMITS_H__ |
2 | 2 | #define __LIMITS_H__ |
3 | 3 | |
4 | -#define CHAR_BIT 8 | |
5 | - | |
4 | +#define CHAR_BIT (8) | |
5 | +#define INT_MIN (−2147483648) | |
6 | +#define INT_MAX (2147483647) | |
7 | + | |
6 | 8 | #endif |
@@ -4,9 +4,11 @@ | ||
4 | 4 | typedef unsigned char uint8_t; |
5 | 5 | typedef unsigned short uint16_t; |
6 | 6 | typedef unsigned int uint32_t; |
7 | +typedef unsigned long long int uint64_t; | |
7 | 8 | typedef char int8_t; |
8 | 9 | typedef short int16_t; |
9 | 10 | typedef int int32_t; |
11 | +typedef long long int int64_t; | |
10 | 12 | |
11 | 13 | typedef int intptr_t; |
12 | 14 | typedef unsigned int uintptr_t; |