You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
JerryScript is the lightweight JavaScript engine intended to run on a very constrained devices such as microcontrollers: Only few kilobytes of RAM available to the engine (<64 KB RAM) Constrained ROM space for the code of the engine (<200 KB ROM) The engine supports on-device compilation, execution and provides access to peripherals from JavaScript. To learn more, please visit the project on GitHu
æè¿ãåºç¤ææ³æéãã¹ã¿ã¼ã¨ããããã°ã©ãã³ã°è¨èªã®è§£èª¬ãæµè¡ã£ã¦ããããªã®ã§ã便ä¹ãã¦ã¿ããå人çã«ã¯C++ãPythonã®æ¹ãæ £ã親ããã§ããã®ã ããèªåã§ãåå¼·ã§ããããã«æ®æ®µä½¿ã£ã¦ããªãè¨èªãæ¸ãã¦ã¿ããã¨ã«ããã以åã«ããã®ããã°ã§è¨åããè¨èªãProcessingãErlangãLuaãPowerShellãªã©ã®ä¸ã§ãErlangã¨Luaã«èå³ããã£ãã®ã§ãæ¯è¼çæ¸ããããLuaãé¸ãã§ã¿ãã ä½æ Luaãªã®ã? Wikipediaã«ããã¨ãLuaã¯ãã©ã¸ã«ã»ãªãªãã¸ã£ãã¤ãã®ã«ããªã«å¤§å¦ã§çã¾ããæç¶ãåè¨èªã ãé«éãªåä½ãé«ã移æ¤æ§ãçµã¿è¾¼ã¿ã®å®¹æããç¹å¾´ã ãã¾ãããã¹ãããã°ã©ã ã¸ã®çµã¿è¾¼ã¿ã容æã§ãããã¨ããã£ã¦ãã³ã³ãã¥ã¼ã¿ã²ã¼ã ãªã©ã§å©ç¨ããã¦ãããæåã©ããã§ã¯ãPlayStation HomeãWorld of Warcraftãªã©ããããã¾ããå°é£¼å¼¾æ°ããªãã¦
ruby-libvirtã®ã½ã¼ã¹ã³ã¼ããèªãã§ããããä½ããæªãããªãã¯ããã 67 #define generic_get(kind, v) \ 68 do { \ 69 vir##kind##Ptr ptr; \ 70 Data_Get_Struct(v, vir##kind, ptr); \ 71 if (!ptr) \ 72 rb_raise(rb_eArgError, #kind " has been freed"); \ 73 return ptr; \ 74 } while (0); 75 ã·ã£ã¼ãã ã¨ï¼ããã2ã¤ã ã¨ï¼è¦ããã¨ãªããï¼ ã¨ããããã§å¼æ°ãã¯ãã«ã¤ãã¦ã¡ãã£ã¨å®é¨ãã¦ã¿ã¾ããã åºæ¬çãªå¼æ°ä»ããã¯ã ã¾ãã¯åºæ¬çãªå¼æ°ãã¯ãã 1 #include <stdio.h> 2 3 #define test_puts(hoge) \ 4 do { \ 5 hoge
C è¨èªã«ãããªãã¸ã§ã¯ãè¨è¿°æ³ COOL ver.2 C-language's Object Oriented Language ver.2 [æ¤ç´¢] ç®æ¬¡ 0. ã¯ããã« 1. ã¯ã©ã¹ã®è¨è¿°, å±æ§ã®è¨è¿° 2. æä½ã®è¨è¿° 3. ã¯ã©ã¹å±æ§ã®è¨è¿°ãå®æ°ã®è¨è¿° 4. åæåæä½ã¨å¾å§æ«æä½ã®è¨è¿° 4-1.å¦çå¹çåªå ã¤ã³ã¿ã¼ãã§ã¤ã¹ 4-2.åã³ã³ãã¤ã«ä¸è¦ã¤ã³ã¿ã¼ãã§ã¤ã¹ 4-3.åçãã¤ã³ãã£ã³ã°ã»ã¤ã³ã¿ã¼ãã§ã¤ã¹ 5. ç¶æ åå¾æä½ã¨ç¶æ è¨å®æä½ã¨ã¤ãã³ããã³ãã©ã®è¨è¿° 6. éç´ã®è¨è¿°ãç¶æ¿ã®è¨è¿° 6-1.éç´ã®è¨è¿° 6-2.ç¶æ¿ã®è¨è¿° 6-3.å¤éç¶æ¿ã®è¨è¿° 6-4.éè¤ç¶æ¿ã®è¨è¿° 6-5.åçç¶æ¿ã®è¨è¿° 7. å¤æ æ§ï¼å¤ç¸æ§ï¼ãã¤ã³ã¿ã¼ãã§ã¤ã¹ç¶æ¿ã®è¨è¿° 7-1.å¤æ æ§ã®è¨è¿° 7-2.å¤æ æ§ãæã£ãçæã®è¨è¿° 7-3.å¤éç¶æ¿ã®å¤æ æ§ã®è¨è¿° 7-4.éè¤ç¶æ¿ã®å¤æ æ§ã®è¨è¿° 7
ããã¶ã¤ã³ãã¿ã¼ã³ããããã¡ãã§ããã¨ããã£ãããããã ããï½ãã§ããããªååãæ¬èªãã§ããã³ã¨ããªãããã ããããªãã¸ã§ã¯ãæåã£ã¦ãªã«ï¼ãªã«ã便å©ãªã®ãããåãããã®ã ãã©ãããããããªãã§ããã§ããã°ãããã ããã§ããã°ã ãªï½ãã¦ãæã£ã¦ãã¦ãããªãã¨ãªã ãªãã¸ã§ã¯ãæåãæ°ã«ãªã£ã¦ãã ã·ã¹ãã éçºè ã¯ãå¤ãã®ã§ã¯ãªãã§ããããï¼ãããã ç§ããããªè ã®ä¸äººã§ããã ããããããã ã ãã¦ã¯ãããã¦ãããªãã¸ã§ã¯ãæåã§ãã ãªããã便å©ãªã¯ãã§ãã ããã§ãç§ã¯ãGOFã®ãã¶ã¤ã³ãã¿ã¼ã³[1]ããã§ããã ãã·ã³ãã«ã«è¡¨ç¾ãããå°ããªå°ããªããã°ã©ã ãï½ãã¶ã¤ã³ãã¿ã¼ã³ã®éª¸éª¨ãã¡ï½ããä½ã£ã¦ã¿ã¾ããã骸骨é ã骨ã®é«ã¾ã§ããã¶ãå°½ãã¤ãããã°ããªãã¸ã§ã¯ãæåã®çé«ã¾ã§å³ãããã¨ãã§ãããããï¼ï¼ ããã¶ã¤ã³ãã¿ã¼ã³ã®éª¸éª¨ãã¡ï¼RE-BONEï¼ããã§ã¯ãå 容ãå¤§å¹ ã«è¦ç´ããJa
Interactive GCC Interactive GCC (igcc) is a real-eval-print loop (REPL) for C/C++ programmers. It can be used like this: $ ./igcc g++> int a = 5; g++> a += 2; g++> cout << a << endl; 7 g++> --a; g++> cout << a << endl; 6 g++> It is possible to include header files you need like this: $ ./igcc g++> #include <vector> g++> vector<int> myvec; g++> myvec.push_back( 17 ); g++> printf( "%d\n", myvec.size
C è¨èªã§ãªãã«ã»ã¨ã³ãã£ã¢ã³ã¨ããã°ã»ã¨ã³ãã£ã¢ã³ã®ä¸¡æ¹ãæ±ãã³ã¼ããæ¸ãã¦ãã¦ãããå æ¸ãããã©ãããæãå§ããã®ã§ãPerl è¨èªã® pack/unpack ã®ããã«ãnNvV ãã³ãã¬ã¼ãã§ä¸çºå¤æã§ããããã«ãã¦ã¿ã¾ãããC è¨èªã§ pack/unpack ã使ãå ãã¿ã¯ Brian W. KernighanãRob Pikeãããã°ã©ãã³ã°ä½æ³ã第ä¹ç« (æ¥æ¬èªè¨³æ¬ã§ã¯ 294 ãã¼ã¸)ã«è¦ããã8 ãããã¨ããã°ã»ã¨ã³ãã£ã¢ã³ 16 ãããã pack/unpack ããå®è£ ãè¨è¼ããã¦ãã¾ãããããè¨ãã¾ãã¦ã16 ãããã32 ãããã®ãªãã«ã»ã¨ã³ãã£ã¢ã³ã¨ããã°ã»ã¨ã³ãã£ã¢ã³ãæ±ããããã«ãã¦ã¿ã¾ããããã³ãã¬ã¼ãæå㯠Perl ã«åãã㦠CnNvV ã® 5 種é¡ã使ãã¾ãã ã»ã¨ãã©Perl ã®ã³ã¼ãã§ãããããããã°ã©ãã³ã°ä½æ³ãã®ã³ã¼ãã®ãã®ã§ããããã©ã¤ã»ã³ã¹
ã¨ã¦ãã¨ããµã¤ãã£ã³ã°ãªæ¬ã«åºä¼ããä¸æ°ã«èªãã§ãã¾ãã¾ãããææ³ãæ¸ããã¨æãã¾ãã ã¢ãã³Cè¨èªããã°ã©ãã³ã° - è±äºå¿ç https://amzn.to/3DKnQHT ã¿ã¼ã²ããèªè 層ã¯çµè¾¼ã¿åéï¼# ãã®æ¬ã®ã¿ã¼ã²ããèªè ã¯ãºããªãçµè¾¼ã¿ã¨ã³ã¸ãã¢ãã½ã¼ã¹ã³ã¼ãã®ãµã³ãã«ãããºããªçµè¾¼ã¿ãªå 容ãæ±ã£ã¦ãã¾ããCè¨èªã使ã人ï¼çµè¾¼ã¿ã®äººã¨æ±ºãã¤ãã¦ãããããæ¸ç±ã®ãã¡ãã¡ã§ããã®ã¢ããã¼ããçµè¾¼ã¿éçºã§é©å¿ããããã«ã¯ã©ãããã°ãããã¨ããèå¯ãå ¥ãã®ãããã TIOBEã¨ããããã°ã©ãã³ã°è¨èªã®çµ±è¨ãè¦ãã¨ãCè¨èªãå©ç¨ãã¦ãã人ãããã°ã©ãã®2å²ç¨åº¦ãããã¨ãããããèªåã¯ãã®ãã¼ã¿ãåãã¦ç¥ã£ãããã©ããã¾ããã®äºå®ãããããã¨ã¯å¬ããäºã ãCè¨èªã¯ããã«éè¦ãªã®ãã¨ããè«é¡ãåé ã§ç±ãèªãããã www.tiobe.com/content/paperinfo/tpci/i
æååãåºåãæåã§å解ãã ãæ¸å¼ã #include <string.h> char *strtok(char *s1, const char *s2); ã説æã å解対象æåå s1 ããæå群 s2 ä¸ã®æåãåºåãã«åå¥ï¼ãã¼ã¯ã³ï¼ã«å解ãã¾ãã 次ã®ãããªæé 㧠strtok() ãç¨ãã¦æååããã¼ã¯ã³ã«å解ãããã¨ãåºæ¥ã¾ãã æåã®å¼ã³åºãã§ã¯ s1 ã«ã¯å解対象ã®æååãæå®ãã¾ãããã¼ã¯ã³ãããã°ãstrtok() ã¯ãã¼ã¯ã³ã¸ã®ãã¤ã³ã¿ãè¿å´ãã¾ãã 2åç®ä»¥éã®å¼ã³åºãã§ã¯ s1 ã« NULL ãæå®ãã¾ããå解ã§ãããã¼ã¯ã³ããããã¡ã¯ãstrtok() ã¯ãã¼ã¯ã³ã¸ã®ãã¤ã³ã¿ãè¿å´ãã¾ãã ãã¼ã¯ã³ããªããªã㨠strtok() 㯠NULL ãè¿å´ãã¾ãã strtok() ã¯ãã¼ã¯ã³ã¸ã®ãã¤ã³ã¿ãè¿å´ããªãããå解対象æåå s1 ä¸ã®åºåãæåã«ç©ºæå
update-alternatives ãã®ã³ãã³ãã使ãã¨ä»»æã®ç°å¢ã«åãæ¿ãããã sudo update-alternatives --list gcc ã¨ãã¦ç»é²ãããã°--configãªãã·ã§ã³ã§è¨å®ããã ç¡ãå ´åã¯ä¸è¨ã®éãã(4.4ã¨4.6ãåãæ¿ããä¾) sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 46 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.6 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 44 --slave /usr/bin/g++ g++ /usr/bi
ãã¤ã®ã¾ã«ã gcc-4.2 ãæ¶ãã¦ãã®ã§ã gcc ãã¤ã³ã¹ãã¼ã«ãã¾ãã Mac OS X Lion 10.7.2 ã§ç¢ºèª 次ã®ãããªã³ãã³ãã§ç¢ºèªãã¦ã¿ãã¨ãgcc ã llvm-gcc-4.2 ã®ã·ã³ããªãã¯ãªã³ã¯ã«ãªã£ã¦ãããã¨ããããã¾ãã gcc-4.2 ãè·¡å½¢ããªãæ¶ãã¦ããããã ls -la /usr/bin | grep gcc lrwxr-xr-x 1 root wheel 12 Oct 5 10:25 cc -> llvm-gcc-4.2 lrwxr-xr-x 1 root wheel 12 Oct 5 10:25 gcc -> llvm-gcc-4.2 lrwxr-xr-x 1 root wheel 28 Oct 5 10:25 gcov-4.2 -> ../llvm-gcc-4.2/bin/gcov-4.2 lrwxr-xr-x 1 root admin 5
ããèããããHomebrewãã¤ã³ã¹ãã¼ã«ããã¾ã¾ã®ç¶æ ã§ã¯AVRãã¤ã³ã³é¢é£ã®ãã¼ã«ã¯avra(AVRç¨ã¢ã»ã³ãã©)ã¨avrdude(AVRç¨ã©ã¤ã¿ã½ããã¦ã§ã¢)ãããªãã®ã§ããããã¤ã使ã£ã¦ããMacã¨ã¯å¥ã®ç°å¢ã«AVRã®éçºç°å¢ãæ§ç¯ãããã¨ãã¦æ°ãã¤ãã¾ããã ã¨ãããã¨ã§ãavr-gccãªã©ãHomebrewããã¤ã³ã¹ãã¼ã«ããæ¹æ³ãæ¸ãã¦ããã¾ãã ã¾ãã brew tap larsimmisch/avr ã§ãHomebrewã§å¯¾è±¡ã¨ãããªãã¸ããªã«è¿½å ãã¾ãã ããããã¨ã brew search avr ã¨ãã§avré¢é£ã®ãã¼ã«ãåºã¦ããããã«ãªãã¾ãããã¨ã¯ããããã¤ã³ã¹ãã¼ã«ããã ãã brew install avr-binutils brew install avr-gcc brew install avr-libc ã§ããããã¤ã³ã¹ãã¼ã«ã§ãã¾ãã æ å ±å ã¯ãã¡
MacOSX ã® DeveloperToolsã«ãä»å±ãã¦ãããããªã¼ã®é«æ§è½ C/C++/Objective-C/Fortran/... ã³ã³ãã¤ã©ã http://gcc.gnu.org/ ãªããApple ã¯å°æ¥çã«ã¯ gcc ã clang ã«å¤ããæ¹åã«ããã å ¥æå [ç·¨é] ä¸è¨ããã gcc ããã³ llvm-gcc ãªã©ãå«ãä¸å¼ãå ¥æã§ãããMac OSX 10.7 (Lion) ï¼Xcode 4.2以éï¼ã§ llvm-gcc-4.2 ã®ã¿ã¨ãªã£ãããgcc-4.2 ãåããããéã«ãå ¥æã«ä¾¿å©ã https://github.com/kennethreitz/osx-gcc-installer ã¤ã³ã¹ãã¼ã«å¾ã¯ $ ls -l `which CC` `which gcc` `which gcc-4.2` lrwxr-xr-x 1 root wheel 5 5 23 18
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}