ToDo:
²½Êª¤Ë¾¡¤Ä¤Ë¤Ï¡Ä¤È¤«¤Ï¾éÃ̤Ȥ¤¤¦¤« Ê̤˾¡¤Á¤¿¤¤¤È¤â»×¤ï¤Ê¤¤¤Î¤À¤±¤É¡¢ °ìÊýŪ¤Ë¤³¤Ã¤Á¤Î take ¤À¤±¤¬¤¢¤ë¤À¤±¤Î¾õÂ֤ߤ¿¤¤¤Ê ¤³¤È¤Ë¤Ê¤Ã¤Á¤ã¤¦¤È¡¢ ¤½¤ì¤Ï¤Þ¤¡¤¿¤Ö¤ó take ¤â¾Ã¤¨¤ë¤ï¤±¤Ç¡¢ ²¾¤Ë¾Ã¤¨¤Ê¤¤¤È¤·¤Æ¤âÈᤷ¤¤¤·¡£
¤Þ¤¡¶ñÂÎŪ¤Ë¤ÏËͤȤۤ²¤Û¤²¤Ê¿Í¤Î´Ø·¸¤Ë ¤½¤ÎµÕ¤ò¸«¤ë¤ó¤À¤±¤É¤½¤ì¤Ï¤¤¤¤¤È¤·¤Æ¡£
¤È¤¤¤¦¤ï¤±¤ÇÉôʬŪ¤Ë¤Ç¤â¤Ê¤ó¤« ÅÁ¤¨¤é¤ì¤ë¤â¤Î¤¬¤¢¤ë¾õÂÖ¤ò°Ý»ý¤·¤¿¤¤ ¤È¤¤¤¦ÄøÅ٤Τ³¤È¤Ï°Õ¼±¤·¤è¤¦¡¢¤È¤¤¤¦¤«¡£
(11:06)
__builtin_expect ¡£ ¤³¤Î´Ø¿ô¤Î¤Ê¤ó¤«¤Û¤²¤Û¤²¤Ê¤È¤³¤í¤Ï¡¢ 1/2¤Î³ÎΨ¤Ç»È¤Ã¤¿¤Ë¤â´Ø¤ï¤é¤ºÆ±¤¸¥³¡¼¥É¤¬À¸À®¤µ¤ì¤ë ¤³¤È¤¸¤ã¤Ê¤¤¤«¤Ê¤È¡£ ARM ¤À¤È¤³¤¤¤¦¾ðÊó¤Ï¤«¤Ê¤ê͸ú¤Ë¤Ä¤«¤¨¤¿¤ê¤¹¤ë¤ó¤«¤Ê¤¡¡£
¤¢¤ÈÊØÍø¤É¤³¤í¤Ï __builtin_(frame|return)_address ¤È¤«¡£
(11:35)
#include <stdio.h> void p(const char *s, ...) { void *d = __builtin_apply_args(); void *r = __builtin_apply(&printf, d, 12); __builtin_return(r); } int main() { p("%d %d\n", 1, 2); }
int main() { void *ptr = malloc(5); int x; printf("%d\n", __builtin_object_size(ptr, 0)); printf("%d\n", __builtin_object_size(&x, 0)); printf("%d\n", __builtin_object_size(0, 0)); }
(11:46)
http://www.tietew.jp/cppll/archive/12749
printf("hoge\n"); ¤¬ puts("hoge"); ¤Ë²½¤±¤ë¤Î¤Ï ÃΤäƤ¿¤±¤É¡Ä
(11:51)
¤Þ¤¿ tDiary ¤¬¥í¥Ã¥¯Î¥¤µ¤Ê¤¤¸½¾Ý¤¬µ¯¤¤Æ¤¿¤Î¤Ë¥Á¥§¥Ã¥¯¤Ç¤¤º¡Ä
¤¦¤¼¤¨
¤¦¤¼¤¨¤È¸À¤¨¤ÐÀ¼¤¬Á´¤¯½Ð¤Ê¤¤¡£
(23:20)
(23:46)
Á° | 2006ǯ 8·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
¥¨¥é¡¼½Ð¤ë¡©