g++ã® __attribute__)((init_priority(N)))( ãªãæ©è½ã®æ¥æ¬èªã®è§£èª¬ãè¦å½ãããªãã®ã§ããã¤ãã®ããã«ç´¹ä»æãæ¸ãã¦ã¿ã¾ããããã¯ãC++ã®ã°ãã¼ãã«å¤æ°ã®åæåé åºãå¶å¾¡ããããã®GCCã®æ¡å¼µæ©è½ï¼attributeï¼ã§ãã ããçã説æ åçãªåæåãå¿ è¦ãªC++ã®ã°ãã¼ãã«å¤æ°ã®å®ç¾©ã«__attribute__)((init_priority(N)))(ããã£ã¤ããã¨ã.oãã¡ã¤ã«ä¸ã§ããã®å¤æ°ã®åæåé¢æ°(ã³ã³ã¹ãã©ã¯ã¿ç)ã®ã¢ãã¬ã¹ã.ctorsã§ã¯ãªã.ctors.M ã»ã¯ã·ã§ã³ã«å ¥ãã¾ããM ã¯å·¦0ããã£ã³ã°5æ¡åºå®ã®æ°å¤ã§ãM = 65535 - N ã§ãããã¨ã¯ãshinhããã®2005/11ã®è¨äºããç¹ã«ããªã³ã«ã¹ã¯ãªããã®SORTã®ã¨ãã«æ³¨ç®ãããã«ããåæåé ãinit_priorityã§æå®ããéãã«ãªãã¾ããNãå°ããç¨å ã«å
{{#tags}}- {{label}}
{{/tags}}