Re: --split-objs

2014-01-20 Thread Mikhail Glushenkov
Hi, On Mon, Jan 20, 2014 at 11:50 AM, Simon Marlow wrote: > > There is nothing fundamental about -split-objs that prevents it from working > with executables. I expect that GHC doesn't take it into account during its > link step when linking an executable with -split-objs, th

Re: --split-objs

2014-01-20 Thread Simon Marlow
ts of A weren't linked with the final executable. So I tried to compile cabal-install with --split-objs, but apparently this doesn't work because in this case the linker's input is A.o instead of A_split_0.o A_split_1.o ... A_split_N.o. And apparently that's why the documentatio

Re: --split-objs

2013-12-18 Thread Mikhail Glushenkov
executable. So I tried to compile cabal-install with --split-objs, but apparently this doesn't work because in this case the linker's input is A.o instead of A_split_0.o A_split_1.o ... A_split_N.o. And apparently that's why the documentation says that "--split-objs doesn't

Re: --split-objs

2013-12-18 Thread Brandon Allbery
On Wed, Dec 18, 2013 at 10:27 AM, harry wrote: > Brandon Allbery wrote > > I don't understand the question. Whether a library is split-objs or not > > does not affect how you link an executable, only the space/time > efficiency > > trade-off of doing so. And

Re: --split-objs

2013-12-18 Thread harry
Brandon Allbery wrote > I don't understand the question. Whether a library is split-objs or not > does not affect how you link an executable, only the space/time efficiency > trade-off of doing so. And while in theory you might see improvements by > split-objs-ing an executable,

Re: --split-objs

2013-12-18 Thread Brandon Allbery
On Wed, Dec 18, 2013 at 4:08 AM, harry wrote: > The documentation for --split-objs states that "this only makes sense for > libraries". How is an executable compiled against a split-objs library? > According to > https://github.com/haskell/cabal/issues/1611#issuecomment-

--split-objs

2013-12-18 Thread harry
The documentation for --split-objs states that "this only makes sense for libraries". How is an executable compiled against a split-objs library? According to https://github.com/haskell/cabal/issues/1611#issuecomment-30750655, this isn't happening by default. -- View this mes

Re: Experiment: ghc-api and --split-objs

2008-05-20 Thread Simon Marlow
Bertram Felgenhauer wrote: I've made an experiment compiling ghc-api with --split-objs. To summarize, while this is not worthwhile for the compiler itself, it could be a huge win for plugin libraries. A fairly detailed description can be found here, http://int-e.home.tlink.de/ha

Experiment: ghc-api and --split-objs

2008-05-16 Thread Bertram Felgenhauer
Hi, I've made an experiment compiling ghc-api with --split-objs. To summarize, while this is not worthwhile for the compiler itself, it could be a huge win for plugin libraries. A fairly detailed description can be found here, http://int-e.home.tlink.de/haskell/README.ghc-api-test A ta

Re: Now -split-objs work with --make

2006-03-03 Thread Simon Marlow
Bulat Ziganshin wrote: This means that ghc 6.6 starting from current build can optimize EXE sizes by throwing away all unused functions well, not exactly, although that would be a useful enhancement. Currently it only helps when building libraries. Cheers, Simon _

Now -split-objs work with --make

2006-03-03 Thread Bulat Ziganshin
ct: patch applied (ghc): Make -split-objs work with --make To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Thu Mar 2 09:05:05 PST 2006 Simon Marlow <[EMAIL PROTECTED]> * Make -split-objs work with --make This turned out to be a lot easier than I thought. Just moving a few bits o

RE: -split-objs and --make together?

2005-07-29 Thread Simon Marlow
On 29 July 2005 05:10, Dimitry Golubovsky wrote: > Is it possible to use --make when one or more of modules involved are > split? Not right now, but it's on the ToDo list. Cheers, Simon ___ Glasgow-haskell-users mailing list Glasgow-haskell-us

-split-objs and --make together?

2005-07-28 Thread Dimitry Golubovsky
split ghc -c -split-objs UNISTD_H.hs ar cq libUNISTD_H.a UNISTD_H_split/*.o I get the library and the .hi file: no .o file ghc --make syscall.hs libUNISTD_H.a -o syscall It tries to recompile UNISTD_H.hs because there is no UNISTD_H.o, and links against the object file, no

Re: Using -split-objs

2004-03-16 Thread Adrian Hey
On Monday 15 Mar 2004 1:09 pm, Simon Marlow wrote: > > The ghc users guide contains this helpful advice about split-objs.. > > > > "don't use it unless you know what you're doing!" > > > > OK, I admit I don't know what I'm doing. But

RE: Using -split-objs

2004-03-15 Thread Simon Marlow
> The ghc users guide contains this helpful advice about split-objs.. > > "don't use it unless you know what you're doing!" > > OK, I admit I don't know what I'm doing. But despite this handicap > I would like to use split-objs to build a li

Using -split-objs

2004-03-15 Thread Adrian Hey
Hello, The ghc users guide contains this helpful advice about split-objs.. "don't use it unless you know what you're doing!" OK, I admit I don't know what I'm doing. But despite this handicap I would like to use split-objs to build a library. I've already dis

RE: Problem with --split-objs on windoze (when building HOpenGL)

2003-02-05 Thread Simon Peyton-Jones
EMAIL PROTECTED] | Subject: Problem with --split-objs on windoze (when building HOpenGL) | | I'm having some difficulties with the --split-objs parameter when building | HOpenGL on win xp ine with --disable-split-objs. | | Tried uninstalling my 'normal' copy of perl & upgr

Problem with --split-objs on windoze (when building HOpenGL)

2003-01-24 Thread Peter Smith
I'm having some difficulties with the --split-objs parameter when building HOpenGL on win xp ine with --disable-split-objs. Tried uninstalling my 'normal' copy of perl & upgrading GHC to 5.04.2 but am still getting the same error. Couldn't find anything in the archives,