EnglishFrenchSpanish

OnWorks favicon

erlc - Online in the Cloud

Run erlc in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command erlc that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


erlc - Compiler

DESCRIPTION


The erlc program provides a common way to run all compilers in the Erlang system.
Depending on the extension of each input file, erlc will invoke the appropriate compiler.
Regardless of which compiler is used, the same flags are used to provide parameters such
as include paths and output directory.

The current working directory, ".", will not be included in the code path when running the
compiler (to avoid loading Beam files from the current working directory that could
potentially be in conflict with the compiler or Erlang/OTP system used by the compiler).

EXPORTS


erlc flags file1.ext file2.ext...

Erlc compiles one or more files. The files must include the extension, for example
.erl for Erlang source code, or .yrl for Yecc source code. Erlc uses the extension
to invoke the correct compiler.

GENERALLY USEFUL FLAGS


The following flags are supported:

-I directory:
Instructs the compiler to search for include files in the specified directory. When
encountering an -include or -include_lib directive, the compiler searches for header
files in the following directories:

* ".", the current working directory of the file server;

* the base name of the compiled file;

* the directories specified using the -I option. The directory specified last is
searched first.

-o directory:
The directory where the compiler should place the output files. If not specified,
output files will be placed in the current working directory.

-Dname:
Defines a macro.

-Dname=value:
Defines a macro with the given value. The value can be any Erlang term. Depending on
the platform, the value may need to be quoted if the shell itself interprets certain
characters. On Unix, terms which contain tuples and list must be quoted. Terms which
contain spaces must be quoted on all platforms.

-Werror:
Makes all warnings into errors.

-Wnumber:
Sets warning level to number. Default is 1. Use -W0 to turn off warnings.

-W:
Same as -W1. Default.

-v:
Enables verbose output.

-b output-type:
Specifies the type of output file. Generally, output-type is the same as the file
extension of the output file but without the period. This option will be ignored by
compilers that have a a single output format.

-smp:
Compile using the SMP emulator. This is mainly useful for compiling native code, which
needs to be compiled with the same run-time system that it should be run on.

-M:
Produces a Makefile rule to track headers dependencies. The rule is sent to stdout. No
object file is produced.

-MF Makefile:
Like the -M option above, except that the Makefile is written to Makefile. No object
file is produced.

-MD:
Same as -M -MF <File>.Pbeam.

-MT Target:
In conjunction with -M or -MF, change the name of the rule emitted to Target.

-MQ Target:
Like the -MT option above, except that characters special to make(1) are quoted.

-MP:
In conjunction with -M or -MF, add a phony target for each dependency.

-MG:
In conjunction with -M or -MF, consider missing headers as generated files and add
them to the dependencies.

--:
Signals that no more options will follow. The rest of the arguments will be treated as
file names, even if they start with hyphens.

+term:
A flag starting with a plus ('+') rather than a hyphen will be converted to an Erlang
term and passed unchanged to the compiler. For instance, the export_all option for the
Erlang compiler can be specified as follows:

erlc +export_all file.erl

Depending on the platform, the value may need to be quoted if the shell itself
interprets certain characters. On Unix, terms which contain tuples and list must be
quoted. Terms which contain spaces must be quoted on all platforms.

SPECIAL FLAGS


The flags in this section are useful in special situations such as re-building the OTP
system.

-pa directory:
Appends directory to the front of the code path in the invoked Erlang emulator. This
can be used to invoke another compiler than the default one.

-pz directory:
Appends directory to the code path in the invoked Erlang emulator.

SUPPORTED COMPILERS


.erl:
Erlang source code. It generates a .beam file.

The options -P, -E, and -S are equivalent to +'P', +'E', and +'S', except that it is
not necessary to include the single quotes to protect them from the shell.

Supported options: -I, -o, -D, -v, -W, -b.

.S:
Erlang assembler source code. It generates a .beam file.

Supported options: same as for .erl.

.core:
Erlang core source code. It generates a .beam file.

Supported options: same as for .erl.

.yrl:
Yecc source code. It generates an .erl file.

Use the -I option with the name of a file to use that file as a customized prologue
file (the includefile option).

Supported options: -o, -v, -I, -W (see above).

.mib:
MIB for SNMP. It generates a .bin file.

Supported options: -I, -o, -W.

.bin:
A compiled MIB for SNMP. It generates a .hrl file.

Supported options: -o, -v.

.rel:
Script file. It generates a boot file.

Use the -I to name directories to be searched for application files (equivalent to the
path in the option list for systools:make_script/2).

Supported options: -o.

.asn1:
ASN1 file.

Creates an .erl, .hrl, and .asn1db file from an .asn1 file. Also compiles the .erl
using the Erlang compiler unless the +noobj options is given.

Supported options: -I, -o, -b, -W.

.idl:
IC file.

Runs the IDL compiler.

Supported options: -I, -o.

ENVIRONMENT VARIABLES


ERLC_EMULATOR:
The command for starting the emulator. Default is erl in the same directory as the
erlc program itself, or if it doesn't exist, erl in any of the directories given in
the PATH environment variable.

Use erlc online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad