Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2264
Closed
Open
Created May 25, 2021 by Robert Bernecky@rbeDeveloper

Misleading sac2c -h text or maybe the compiler is busted

I did this:

cd build
sac2c logd.unittest.sac -o /tmp/crud2/foo.exe

This had the effects of:

  1. putting foo.exe into the current directory, and
  2. putting foo.exe.c into /tmp/crud/foo.exe.c.

I would like to be able to specify where sac2c puts the executable, but it looks like it always puts it in the current directory, regardless of the -o argument.

sac2c -h suggests that this might be possible:

When compiling a SAC program, sac2c stores the corresponding intermediate C code either in the file a.out.c in the current directory (default) or in the file .c if is specified using the -o option. Here, any absolute or relative path name may be used. The executable program is either written to the file a.out or to any file specified using the -o option.

Suggestions welcome.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking