<?xml version="1.1" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>scalac man page</title>
<meta http-equiv="Content-Language" content="en"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="Author" content="Stephane Micheloud & LAMP"/>
<style type="text/css">
<!--
blockquote, pre { margin:1em 4em 1em 4em; }
dt { margin: 0.6em 0 0 0; }
p { margin:0.6em 2em 0.6em 2em; text-align:justify; }
//-->
</style>
</head>
<body>
<!-- header -->
<div style="margin: 0 0 2em 0;">
<div style="float:left;">
scalac(1)
</div>
<div style="float:right;">
scalac(1)
</div>
<div style="text-align:center;">
USER COMMANDS
</div>
</div>
<h3 id="name">NAME</h3>
<p>
<code><b>scalac</b></code> – Compiler for the <a href="http://scala-lang.org/">Scala 2</a> language</p>
<h3 id="synopsis">SYNOPSIS</h3>
<p>
<code><b>scalac</b></code><code> [ <<i>options</i>> ] <<i>source files</i>></code></p>
<h3 id="parameters">PARAMETERS</h3>
<p>
<ins><dl>
<dt>
<code><<i>options</i>></code>
</dt>
<dd>
Command line options. See <a href="#options"><b>OPTIONS</b></a> below.</dd>
<dt>
<code><<i>source files</i>></code>
</dt>
<dd>
One or more source files to be compiled (such as <code>MyClass.scala</code>).</dd>
</dl></ins>
</p>
<h3 id="options">OPTIONS</h3>
<p>
The compiler has a set of standard options that are supported on the current development environment and will be supported in future releases. An additional set of non-standard options are specific to the current virtual machine implementation and are subject to change in the future. Non-standard options begin with <b>-X</b>.</p>
<h4 id="standard_options">Standard Options</h4>
<p>
<ins><dl>
<dt>
<code><b>–g:{none,source,line,vars,notc}</b> </code>
</dt>
<dd>
<div>
<code>"none"</code> generates no debugging info,
</div>
<div>
<code>"source"</code> generates only the source file attribute,
</div>
<div>
<code>"line"</code> generates source and line number information,
</div>
<div>
<code>"vars"</code> generates source, line number and local variable information,
</div>
<div>
<code>"notc"</code> generates all of the above and <i>will not</i> perform tail call optimization.
</div>
</dd>
<dt>
<code><b>–nowarn</b> </code>
</dt>
<dd>
Generate no warnings</dd>
<dt>
<code><b>–verbose</b> </code>
</dt>
<dd>
Output messages about what the compiler is doing</dd>
<dt>
<code><b>–deprecation</b> </code>
</dt>
<dd>
<div>
Indicate whether source should be compiled with deprecation information; defaults to <code>off</code> (accepted values are: <code>on</code>, <code>off</code>, <code>yes</code> and <code>no</code>)
</div>
<div>
Available since Scala version 2.2.1
</div>
</dd>
<dt>
<code><b>–unchecked</b> </code>
</dt>
<dd>
<div>
Enable detailed unchecked warnings
</div>
<div>
Non variable type-arguments in type patterns are unchecked since they are eliminated by erasure
</div>
<div>
Available since Scala version 2.3.0
</div>
</dd>
<dt>
<code><b>–classpath</b> <<i>path</i>> </code>
</dt>
<dd>
<div>
Specify where to find user class files (on Unix-based systems a colon-separated list of paths, on Windows-based systems, a semicolon-separate list of paths). This does not override the built-in (<code>"boot"</code>) search path.
</div>
<div>
The default class path is the current directory. Setting the <code>CLASSPATH</code> variable or using the <code>-classpath</code> command-line option overrides that default, so if you want to include the current directory in the search path, you must include <code>"."</code> in the new settings.
</div>
</dd>
<dt>
<code><b>–sourcepath</b> <<i>path</i>> </code>
</dt>
<dd>
Specify where to find input source files.</dd>
<dt>
<code><b>–bootclasspath</b> <<i>path</i>> </code>
</dt>
<dd>
Override location of bootstrap class files (where to find the standard built-in classes, such as "<code>scala.List</code>").</dd>
<dt>
<code><b>–extdirs</b> <<i>dirs</i>> </code>
</dt>
<dd>
Override location of installed extensions.</dd>
<dt>
<code><b>–d</b> <<i>directory</i>> </code>
</dt>
<dd>
Specify where to place generated class files.</dd>
<dt>
<code><b>–encoding</b> <<i>encoding</i>> </code>
</dt>
<dd>
<div>
Specify character encoding used by source files.
</div>
<div>
The default value is platform-specific (Linux: <code>"UTF8"</code>, Windows: <code>"Cp1252"</code>). Executing the following code in the Scala interpreter will return the default value on your system:
</div>
<div>
<code><b> scala> </b></code><code>new java.io.InputStreamReader(System.in).getEncoding</code>
</div>
</dd>
<dt>
<code><b>–target:</b> <<i>target</i>> </code>
</dt>
<dd>
<div>
Specify which backend to use (<code>jvm-1.5,msil</code>).
</div>
<div>
The default value is <code>"jvm-1.5"</code> (was <code>"jvm-1.4"</code> up to Scala version 2.6.1).
</div>
</dd>
<dt>
<code><b>–print</b> </code>
</dt>
<dd>
Print program with all Scala-specific features removed</dd>
<dt>
<code><b>–optimise</b> </code>
</dt>
<dd>
Generates faster bytecode by applying optimisations to the program</dd>
<dt>
<code><b>–explaintypes</b> </code>
</dt>
<dd>
Explain type errors in more detail.</dd>
<dt>
<code><b>–uniqid</b> </code>
</dt>
<dd>
Print identifiers with unique names (debugging option).</dd>
<dt>
<code><b>–version</b> </code>
</dt>
<dd>
Print product version and exit.</dd>
<dt>
<code><b>–help</b> </code>
</dt>
<dd>
Print a synopsis of standard options.</dd>
</dl></ins>
</p>
<h4 id="advanced_options">Advanced Options</h4>
<p>
<ins><dl>
<dt>
<code><b>–Xassem</b> <<i>file</i>> </code>
</dt>
<dd>
Name of the output assembly (only relevant with -target:msil)</dd>
<dt>
<code><b>–Xassem-path</b> <<i>path</i>> </code>
</dt>
<dd>
List of assemblies referenced by the program (only relevant with -target:msil)</dd>
<dt>
<code><b>–Xcheck-null</b> </code>
</dt>
<dd>
Emit warning on selection of nullable reference</dd>
<dt>
<code><b>–Xdisable-assertions</b> </code>
</dt>
<dd>
Generate no assertions and assumptions</dd>
<dt>
<code><b>–Xexperimental</b> </code>
</dt>
<dd>
enable experimental extensions</dd>
<dt>
<code><b>–Xno-uescape</b> </code>
</dt>
<dd>
Disable handling of \u unicode escapes</dd>
<dt>
<code><b>–Xplug-types</b> </code>
</dt>
<dd>
Parse but ignore annotations in more locations</dd>
<dt>
<code><b>–Xplugin:</b> <<i>file</i>> </code>
</dt>
<dd>
Load a plugin from a file</dd>
<dt>
<code><b>–Xplugin-disable:</b> <<i>plugin</i>> </code>
</dt>
<dd>
Disable a plugin</dd>
<dt>
<code><b>–Xplugin-list</b> </code>
</dt>
<dd>
Print a synopsis of loaded plugins</dd>
<dt>
<code><b>–Xplugin-opt:</b> <<i>plugin:opt</i>> </code>
</dt>
<dd>
Pass an option to a plugin</dd>
<dt>
<code><b>–Xplugin-require:</b> <<i>plugin</i>> </code>
</dt>
<dd>
Abort unless a plugin is available</dd>
<dt>
<code><b>–Xprint:</b> <<i>phases</i>> </code>
</dt>
<dd>
Print out program after <<i>phases</i>> (see below).</dd>
<dt>
<code><b>–Xprint-pos</b> </code>
</dt>
<dd>
Print tree positions (as offsets)</dd>
<dt>
<code><b>–Xprint-types</b> </code>
</dt>
<dd>
Print tree types (debugging option).</dd>
<dt>
<code><b>–Xprompt</b> </code>
</dt>
<dd>
Display a prompt after each error (debugging option).</dd>
<dt>
<code><b>–Xresident</b> </code>
</dt>
<dd>
Compiler stays resident, files to compile are read from standard input.</dd>
<dt>
<code><b>–Xshow-class</b> <<i>class</i>> </code>
</dt>
<dd>
Show class info.</dd>
<dt>
<code><b>–Xshow-object</b> <<i>object</i>> </code>
</dt>
<dd>
Show object info.</dd>
<dt>
<code><b>–Xshow-phases</b> </code>
</dt>
<dd>
Print a synopsis of
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
scala-2.9.3.tgz (41个子文件)
scala-2.9.3
misc
scala-devel
plugins
continuations.jar 179KB
bin
scalap 4KB
scaladoc 4KB
scaladoc.bat 2KB
scala.bat 2KB
scalap.bat 2KB
fsc 4KB
scala 4KB
scalac.bat 2KB
fsc.bat 2KB
scalac 4KB
man
man1
scalac.1 10KB
fsc.1 5KB
scalap.1 4KB
scaladoc.1 5KB
scala.1 8KB
src
scalap-src.jar 41KB
scala-partest-src.jar 50KB
scala-library-src.jar 1.14MB
scala-swing-src.jar 132KB
scala-dbc-src.jar 48KB
scala-compiler-src.jar 1.64MB
doc
tools
css
style.css 1KB
scalac.html 13KB
images
external.gif 290B
scala_logo.png 5KB
fsc.html 6KB
scala.html 10KB
scalap.html 4KB
scaladoc.html 6KB
index.html 5KB
LICENSE 2KB
README 2KB
lib
jline.jar 155KB
scalacheck.jar 723KB
scala-library.jar 8.62MB
scala-swing.jar 882KB
scalap.jar 822KB
scala-partest.jar 399KB
scala-dbc.jar 309KB
scala-compiler.jar 11MB
共 41 条
- 1
资源评论
司小幽
- 粉丝: 275
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- March 2024 Expiration Of The OAM Out Of The Box Certificates
- 二叉搜索树迭代器(java代码).docx
- 解决keil MDK 5.38版本 在Debug配置使用STlink调试时软件闪退的问题
- py小项目:用户登录和注册系统开发欢迎图片
- TCCEE-x64-v6.2.3(9.51)
- 准考证.pdf.lnk
- 动态内存分配 实验设计.cpp
- 使用STM32F103C8T6+L298N+MG513P30电机使用外部中断法和输入捕获法进行编码器测速
- python入门python-Day25.rar
- python入门python-Day24.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功