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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1110
Closed
Open
Created Feb 14, 2012 by Robert Bernecky@rbeDeveloper

Buildv.sac appears to be missing reuse code

Bugzilla Link 910
Created on Feb 14, 2012 17:08
Version svn
OS Linux
Architecture PC
Attachments a.out.awlf, a.out.wlf, crud.awlf, crud.wlf

Extended Description

Created an attachment (id=848)
C code generated by  sac2c -doawlf -nowlf -bopt
This code runs about twice as slow with -doawlf -nowlf as without:
use Array:all;
int main()
{
  x = with {
   ([0] <= iv=[i] < [2000]) : iota(i);
   } : fold( ++, [:int]);
  z = sum(x);
  StdIO::show(z);
 return(0);
}
The IL codes at -bopt look, to my not-tutored-enough eyeballs, to be
almost identical. However, the generated C code shows that
the -doawlf version contains 15 for()-loops, whereas the -doawlf
version has only 13.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 17729:MODIFIED linux-gnu_x86_64
 (Mon Feb 13 09:44:42 EST 2012 by sac)
This is not a new bug. Attached are the generated C codes and
the -bopt codes.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking