Stg optimizations

2008-03-26 Thread Guilherme Avelino
Which optimizations are presented just in the STG, not being observed in the Core? Are there any documentation about these optimizations? Thanks in advance. ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc

Re: patch applied (ghc): First cut at reviving the External Core tools

2008-03-12 Thread Guilherme Avelino
Hi, the version is 6.8.1 and I wanted to say that the driver show a message error and not parse the file. 2008/3/11, Tim Chevalier <[EMAIL PROTECTED]>: > > On 3/11/08, Guilherme Avelino <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I compiled the files and tri

Re: patch applied (ghc): First cut at reviving the External Core tools

2008-03-12 Thread Guilherme Avelino
Hi, I compiled the files and tried to parser a module generated with ghc -c -O2 -fext-core, but it didn´t work. Do I need any other flag to produce the hcr file supported by the driver? OBS: I modified the file driver.hs changed the flist to ["Test.hcr"], where "test.hcr" is my core module. 2008/

Re: Rewrite rules in Core

2008-03-07 Thread Guilherme Avelino
gt; iterateFB c f x) "iterateFB" [1]iterateFB (:) = iterate #-} Thanks. 2008/3/7, Tim Chevalier <[EMAIL PROTECTED]>: > > On 3/7/08, Guilherme Avelino <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I´m using the flag -fext-core to obtain the c

Rewrite rules in Core

2008-03-07 Thread Guilherme Avelino
Hi, I´m using the flag -fext-core to obtain the core of a program. But, rewrite rules not changed this code. Are there any way to observe the changes cause by rewrite rules on Core language? For sample: iterate :: (a -> a) -> a -> [a] iterate f x = x : iterate f (f x) iterateFB c f x = x `c` i

Re: STG code

2008-02-19 Thread Guilherme Avelino
_dau of wild_B1 { [] -> GHC.Base.[] @ u_aaq; : x_a5I xs_a5J -> GHC.Base.: @ u_aaq (ds_dat x_a5I) (Teste.mapp @ t_aap @ u_aaq ds_dat xs_a5J) } end Rec } 2008/2/19, Guilherme Avelino <[EMAIL PROTECTED]>: > > Hi, I´m trying to use the Core representation by

Re: STG code

2008-02-19 Thread Guilherme Avelino
Hi, I´m trying to use the Core representation by -ddump-simpl, because the code generated is simpler than -fext-core. But I don´t understand the meaning of some informations. I compile the code: mapp::(t->u)->[t]->[u] mapp _ [] = [] mapp f (x:xs) = (f x):(mapp f xs) is generated: Teste.t :: G

STG code

2008-02-18 Thread Guilherme Avelino
Hi, I know that Stg don´t have type informations, but I saw some research using a changed version of GHC Some researches, like Compiling Haskell to Java [Tullsen, Mark] and Multi-Paradigm Just-In-Time Compilation [Stewart, Don], have used the STG as frontend for them compilers. They changed the

Re: -ddump-stg code

2007-11-19 Thread Guilherme Avelino
likely to change > significantly in 6.10. > > Aaron > > On Nov 19, 2007, at 6:53 PM, Guilherme Avelino wrote: > > > Hi, > > > > I didn´t understand. I´m using the GHC 6.8.1 and when I use -fext- > > core is generated a file (.hcr). Is there any problem with t

Re: -ddump-stg code

2007-11-19 Thread Guilherme Avelino
Hi, I didn´t understand. I´m using the GHC 6.8.1 and when I use -fext-core is generated a file (.hcr). Is there any problem with the generated code? Which version should I use? Thanks 2007/11/19, Tim Chevalier <[EMAIL PROTECTED]>: > > On 11/19/07, Guilherme Avelino <[EMAIL PR

Re: -ddump-stg code

2007-11-19 Thread Guilherme Avelino
e > > working on this. > > > > > > > > You may also find it easier to use the GHC API: you should be able to > > import module GHC, and use its API to compile your module and return the > > (typed) Core syntax tree to your back end. > > > > >

Re: -ddump-stg code

2007-11-19 Thread Guilherme Avelino
and use its API to compile your module and return the > (typed) Core syntax tree to your back end. > > > > Simon > > > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Guilherme Avelino > *Sent:* 16 November 2007 20:14 > *To:* cvs-ghc@haskell.or

-ddump-stg code

2007-11-16 Thread Guilherme Avelino
Hi, I want to use the stg code generated by the ghc with a frontend for my compiler. I´m using the flags -ddump-stg and -dppr-debug to obtain the STG informations. However there are some things that I din´t understand. Are there any document where I can find informations about the stg generated?