トップ «前の日記(2007-08-04) 最新 次の日記(2007-08-06)» 編集

はじめてのにき

ここの位置付け

2004|11|
2005|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|

ToDo:


2007-08-05

_ 再帰判定

http://d.hatena.ne.jp/higepon/20070804/1186241590

#include <stdio.h>

int is_tail_opt() {
    return __builtin_return_address(1) != __builtin_return_address(2);
}

int fact(int x) {
    printf("%s\n", is_tail_opt() ? "tail opt" : "not opt");
    return x == 1 ? 1 : fact(x-1) * x;
}

int main() {
    printf("%d\n", fact(5));
}

超いいかげんにこんなんを考えた。

i@um ~/test> gcc -O2 tail_opt.c
i@um ~/test> ./a.out
tail opt
tail opt
tail opt
tail opt
tail opt
120
i@um ~/test> gcc tail_opt.c
i@um ~/test> ./a.out
tail opt
tail opt
not opt
not opt
not opt
120

どのへんがいいかげんかというと、全部 tail opt って出れば最適化されてて、ひとつでも not opt って出れば最適化されてない、っていうあやしげな判断を人間がしなければならないところ。

(00:54)

_ どう書く

荒らすぞ! という心意気とかそのへんを胸に秘めて帰宅したのだけど、 お題が難しすぎるよ…

JPEG を取得して色反転だなんて、 僕の好きな(荒らすのに適切な)言語ではできそうもない。

(01:01)

_ うーん

  • malloc
  • w3m
  • oprofile
  • linux binary

最近 TODO がこなせない。

(23:55)

本日のツッコミ(全2件) [ツッコミを入れる]
_ ひげぽん (2014-05-24 02:17)

>__builtin_return_address(1)

おお。知らなかった。

_ nonovesyvet (2014-05-24 02:17)

Swimming and playing in the pool is preferably oddziajwujケ on the anthropoid centre, their most weighty advantages are: extreme recreation, relaxed both physically and mentally, burden for the muscles and joints, which in objective reduces muscle tension, while stimulating the usual maturing of the corset of muscle and bone-camera dump, is the hindrance of spinal curvatures, improves the overall suppleness of the unsophisticated creature to infection and infection, helps in the convert of rehabilitation, eg in children with musculoskeletal complaints stawowymi, preferably by way of acting on the honky-tonk mobility, a significant stimulatory effect on the figure and quality of physical and rationality development
Swimming uniquely affects:
Osseous-articular organization
Maintaining band evaluate has a undeniable impact on the stimulation of the labyrinth work. Swimming reduces the swastika and causes muscle relaxation. Is also associated with the change-density surroundings, ie increased water partisans, allowing you to put up exercises with intransigence away increasing muscle strength and endurance. On the remains works hydrostatic pressure, which exerts a forceful effect on the movements of the caddy, while straining muscles needed to uphold essentials likeness wp <vertical>and spine and joints. Systematic swim proficiently also affects the due array and prevents skrzywieniom spine.
Respiratory
Breathing in water affects the increase of critical capacity. Respiratory muscles in the aquatic situation they work much more efficiently because the run through into the spray forces the acute feat these muscles.
Circulatory group
The remainder in temperature, increased blood pressure and massaging the lamina nearby the spa water increases its blood contribute and causing better blood issuing, increases the efficiency of the heart.
Digestive plan
At hand swimming stimulates the digestive approach (abdomen and intestines). This leads to a beat metabolism, elevate surpass digestion and absorption of the ingredients supplied to the body with food.
Urinary
It accelerates the trade of the kidneys and the bladder is filling quickly.
The set of balance.
Wash douse is associated with the change of conditions where there is no torture, which is advantageous on our body.
Nervous
During classes, our majority releases endorphins, which unqualifiedly affects our frame of mind, eliminating anxiety and stress.
Routine swimming would distribute you a well-proportioned profile, without causing congestion and council shaping. Deuterium oxide provides us with sun-up, this friendly knead all muscle groups. It is not us, hot and not be in a tizzy, do not obligation our joints and quill
<a href=http://nauka.strony-www.net/nauka-plywania-zamosc>nauka plywania Zamosc</a>

お名前:
E-mail:
コメント:
人生、宇宙、すべての答え
本日のリンク元

2007年
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
1.shinh(2014-05-24 02:17) 2.shinh(2014-05-24 02:17) 3.紫月飴(2014-05-24 02:17)
search / home / index

全てリンクフリーです。 コード片は自由に使用していただいて構いません。 その他のものはGPL扱いであればあらゆる使用に関して文句は言いません。 なにかあれば下記メールアドレスへ。

shinichiro.hamaji _at_ gmail.com / shinichiro.h