在计算机科学中,一个编译程式定向是由程式师嵌入于原始程式码的资料,以告知编译器当如何编译,一个编译程式定向通常用来告知编译器如何进行编译,其他原始程式码则告知编译器应当编译什么。
#include”的预处理器指导(preprocessor directive)可以告知编译器在此处插入其他的纯文字档。#pragma once来建构,效用特性上近似于Include防范。在Ada编程语言中,编译程式定向也被称为编译控制指令(pragmas,"pragmatic information"的简称),在其他编程语言中(如Turbo Pascal)则称为意义性意见(significant comments)。
举例而言 strict - Perl的指导指令(pragma)用来限定不安全的建构
stock | retire | vm
Why are we here?
All text is available under the terms of the GNU Free Documentation License
This page is cache of Wikipedia. History