dbo:abstract |
In computing, compile-time function execution (or compile time function evaluation, or general constant expressions) is the ability of a compiler, that would normally compile a function to machine code and execute it at run time, to execute the function at compile time. This is possible if the arguments to the function are known at compile time, and the function does not make any reference to or attempt to modify any global state (i.e. it is a pure function). If the value of only some of the arguments are known, the compiler may still be able to perform some level of compile-time function execution (partial evaluation), possibly producing more optimized code than if no arguments were known. (en) 컴파일 타임 함수 실행(Compile-time function execution) 또는 컴파일 타임 함수 평가는 일반적으로 함수를 기계어로 컴파일하고 런타임 시에 실행시키는 컴파일러가 컴파일 타임에 함수를 실행시키는 것이다. 이것은 함수의 인자들이 컴파일 타임에 알려지고 함수가 전역 상태(순수 함수)를 수정하려는 시도를 하지 않을 때 가능하다. 단지 몇몇 인자들만 알게 되더라도 어느 정도의 컴파일 타임 함수 실행을 할 수 있으며, 아무 인자들도 알려지지 않았을 때보다는 더 최적화된 코드를 만들 수 있다. (ko) |
dbo:wikiPageExternalLink |
http://rosettacode.org/wiki/Compile-time_calculation |
dbo:wikiPageID |
10585201 (xsd:integer) |
dbo:wikiPageLength |
8296 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID |
1118855397 (xsd:integer) |
dbo:wikiPageWikiLink |
dbr:Compiler dbr:Run_time_(program_lifecycle_phase) dbr:Subroutine dbr:Compile_time dbr:Computing dbr:C++ dbr:C++11 dbr:C++20 dbc:Compiler_optimizations dbr:D_programming_language dbr:Partial_evaluation dbr:Machine_code dbr:Pure_function dbc:Compiler_construction dbr:Template_metaprogramming dbc:Articles_with_example_D_code dbr:C++14 dbr:Macro_(computer_science) dbr:Execution_(computing) |
dbp:wikiPageUsesTemplate |
dbt:Short_description dbt:Compiler_optimizations |
dcterms:subject |
dbc:Compiler_optimizations dbc:Compiler_construction dbc:Articles_with_example_D_code |
rdfs:comment |
컴파일 타임 함수 실행(Compile-time function execution) 또는 컴파일 타임 함수 평가는 일반적으로 함수를 기계어로 컴파일하고 런타임 시에 실행시키는 컴파일러가 컴파일 타임에 함수를 실행시키는 것이다. 이것은 함수의 인자들이 컴파일 타임에 알려지고 함수가 전역 상태(순수 함수)를 수정하려는 시도를 하지 않을 때 가능하다. 단지 몇몇 인자들만 알게 되더라도 어느 정도의 컴파일 타임 함수 실행을 할 수 있으며, 아무 인자들도 알려지지 않았을 때보다는 더 최적화된 코드를 만들 수 있다. (ko) In computing, compile-time function execution (or compile time function evaluation, or general constant expressions) is the ability of a compiler, that would normally compile a function to machine code and execute it at run time, to execute the function at compile time. This is possible if the arguments to the function are known at compile time, and the function does not make any reference to or attempt to modify any global state (i.e. it is a pure function). (en) |
rdfs:label |
Compile-time function execution (en) 컴파일 타임 함수 실행 (ko) |
owl:sameAs |
wikidata:Compile-time function execution dbpedia-fa:Compile-time function execution dbpedia-ko:Compile-time function execution https://global.dbpedia.org/id/4hzKu |
prov:wasDerivedFrom |
wikipedia-en:Compile-time_function_execution?oldid=1118855397&ns=0 |
foaf:isPrimaryTopicOf |
wikipedia-en:Compile-time_function_execution |
is dbo:wikiPageDisambiguates of |
dbr:CTFE_(disambiguation) |
is dbo:wikiPageRedirects of |
dbr:General_constant_expressions dbr:Compile_time_function_execution dbr:Compile-time_execution dbr:Compile-time_function_evaluation dbr:Compile_time_function_evaluation |
is dbo:wikiPageWikiLink of |
dbr:List_of_computing_and_IT_abbreviations dbr:Generic_programming dbr:Compile_time dbr:C++11 dbr:D_(programming_language) dbr:Partial_evaluation dbr:Pure_function dbr:Template_metaprogramming dbr:Metaprogramming dbr:Optimizing_compiler dbr:Seed7 dbr:CTFE_(disambiguation) dbr:General_constant_expressions dbr:Compile_time_function_execution dbr:Compile-time_execution dbr:Compile-time_function_evaluation dbr:Compile_time_function_evaluation |
is rdfs:seeAlso of |
dbr:Template_metaprogramming |
is foaf:primaryTopic of |
wikipedia-en:Compile-time_function_execution |