Menu ▾ ▴

SyntaxStmtExecutable

Brad Lanam

Wiki Home
Syntax

Syntax: .executable

.executable defines an executable to be built. This is not an imperative statement. The build is started with the .build or .auto_build statement.

.executable helloworld {
  .source helloworld.c;
}
Examples
.executable helloworld {
  .source 'helloworld.c';
}

.executable helloworld {
  .source 'helloworld.c';
  .compiler_flags '-g';
}

.executable helloworld {
  .source 'helloworld.c';
  .libraries '-lm';
}

.executable helloworld {
  .source hello.c world.c;
}
Attributes

Wiki Home
Syntax


Related

Wiki: Home
Wiki: Syntax
Wiki: SyntaxAttrCompileFlag
Wiki: SyntaxAttrLibraries
Wiki: SyntaxAttrLinkFlag
Wiki: SyntaxAttrSource
Wiki: SyntaxStmtBuild