本文提到的所有问题(字节顺序、传递到编译器的选项等等)都有可能与移植有关。
All issues mentioned in this article might be relevant (byte-ordering, the options passed to the compiler, and so forth).
不需要诸如 DNDEBUG 等特定于编译器的选项,并且您不需要向链接器提供库——单凭该头文件就足够了。
No compiler-specific option like DNDEBUG is required, and you don't need to provide a library to the linker -- the lone header is sufficient.
为了避免把时间花在这类问题上,我添加了另外一个选项,尝试直接在绑定编译器内装入修改后的类。
To avoid spending time on this type of problem, I added another option to try loading the modified classes directly within the binding compiler.
这可以帮助确保您考虑的正在设置的选项实际上都正被JIT编译器接受和识别。
This helps ensure that the options you think are being set are actually being received and recognized by the JIT compiler.
这些变化包括:对编译器代码生成进行完全重写,添加用源代码增强代替字节码增强的选项。
These changes include a complete rewrite of the binding compiler code generation, with an added option for using source code enhancement as an alternative to bytecode enhancement.
这部分内容深入分析了一些最有价值的编译器选项。
This section explores some of the most useful compiler options.
要执行递归调用,必须在以递归方式调用的程序的PROGRAM - ID段落中编写RECURsive子句(或属性),或指定THREAD编译器选项。
To make a recursive call, you must either code the recursive clause (or attribute) in the PROGRAM-ID paragraph of the recursively called program or specify the THREAD compiler option.
下面的表1显示了不受THREAD编译器选项支持、应当避免的语言元素。
Table 1 below shows what language elements to avoid that are not supported by the THREAD compiler option.
当找到这些不需要的语言元素后,可能需要用具有类似功能的元素替换它们,并且THREAD编译器选项支持这些替换的元素。
When you find those unwanted language elements, you may need to replace them with elements with similar functions that the THREAD compiler option supports.
不幸的是,并非所有的软件都可以充分利用这个优点;实际上,默认编译器选项生成的就是32位的代码。
Unfortunately, not all software copes with this elegantly, and in fact, the default compiler options generate 32-bit code.
推荐的编译器选项列表。
silent ——此选项抑制编译器产生的所有消息。
silent - The silent option suppresses all the messages from the compiler.
gcc编译器选项-Wformat-security 可以警告您代码中可能受到格式化字符串攻击的地方。
The gcc compiler option -Wformat-security will warn you of some cases where the code may be vulnerable to format string attacks.
特定于平台的bldrtn和embprep程序会使用正确的编译器和链接选项。
The platform-specific BLDRTN and embprep programs will use the right compiler and link options.
gcc编译器套件已被广为应用,大部分项目完全可以假定它为很多目标平台的一个可选项。
The GCC compiler suite is sufficiently widely available that most projects can reasonably assume that it will be an option on a broad variety of target platforms.
原生z/OS批作业:对于 C++程序,使用C编译器的CXX运行时选项。
Native z/OS Batch: Use the C compiler CXX runtime option for C++ programs.
可以使用 #pragmaexport指令或C编译器的exportall选项来完成。
This can be done using the #pragma export directive, or the C compiler exportall option to export everything.
注意,对于所有运行的与同一个项目相关的编译器,必须使用这个选项的相同变体。
Note that you must use the same variant of this option for all compiler runs related to the same project.
这个命令让您可以检查gtk +是否存在,版本是否正确;还可以对长长的选项行进行分割,这样编译器就可以找到自己的库了。
This command allows you to check whether GTK + is present and in the proper version and to split all those insanely long and boring lines of options so compilers can find their libraries.
它的工作方式是:从预处理源代码和用于编译源代码的编译器选项创建一个哈希表。
It works by creating a hash from the preprocessed sources and the compiler options used to compile the sources.
该选项生成一个选项文件,其中包含一个方法签名列表,对应于JIT编译器在应用程序运行的时候编译的那些方法。
This option generates an options file containing a list of the method signatures corresponding to the methods the JIT compiler compiled while the application ran.
你也希望根据那些特性打开新的推断特性的选项,这允许编译器通过估计右值表达式去推测出局部变量的申明类型。
You'll also want to turn on the new Option infer feature. This allows the compiler to infer local variable type declarations by evaluating the right-hand side of the expression.
最后一个选项具有最低的预期吞吐量/延迟性能,但没有由JIT编译器引起的暂停,因为此方案完全禁用了 JIT 编译器。
The last option has the lowest expected throughput/latency performance but zero pauses from the JIT compiler because the JIT compiler is completely disabled in this scenario.
编译器层还包含了对编译器单独调用的展现,其中包括集成的引用、编译器选项以及源代码文件。
The compiler layer also contains a representation of a single invocation of a compiler, including assembly references, compiler options, and source code files.
这个工具的输入是应用程序的源代码和使用某些编译器选项编译的二进制文件。
The input for this tool is the application's source code and the resulting binaries compiled with certain compiler options enabled.
如果使用THREAD编译器选项编译包含不恰当元素的程序,则会将这些元素标记为错误。
If you compile the program containing unwanted elements with the THREAD compiler option, they are flagged as errors.
同样,把更改保存到类中会导致对项目进行快速递增编译,您也可以从项目的属性页面上设置所有相同的编译器选项。
Likewise, saving changes to a class will result in a fast incremental compile of the project and you'll be able to set all the same compiler options from the project properties pages.
通过使用cics编辑器选项及其参数(请参见表2),可以调用编译器的集成cics语法检查器和转换器功能。
Use the cics compiler option and its parameter (refer to Table 2) to invoke the integrated cics syntax checker and translator feature of the compiler.
编译器是高度可调优的,有大量调整生成代码的选项。
The compilers are highly tunable, with a large number of options for tweaking the generated code.
CCACHE_RECACHE——设置这个选项告诉ccache忽略缓存中现有的条目并调用编译器;但对于新的条目,则缓存结果。
CCACHE_RECACHE — If set, tells ccache to ignore the existing entries in the cache and calls the compiler; but for new entries, it caches the result.
应用推荐