RE: executable = exe + data

2006-01-01 Thread Hannu E K Nevalainen
Sam Steingold wrote: Hannu: >> Then your options seems to have shrunk to a "launcher" that basicly >> does >> >> system("lisp.exe -M lispinit.mem") > > :-) > > this is what we have been doing for well over 15 years ... well, time for some progress ;-) >> Can you elaborate on _why_ the "single e

Re: executable = exe + data

2006-01-01 Thread Sam Steingold
> * Hannu E K Nevalainen <[EMAIL PROTECTED]> [2006-01-01 19:29:33 +0100]: > > Sam S wrote: >>> * Brian Dessent [2005-12-31 15:46:50 -0800]: >>> >>> Sam Steingold wrote: >>> Is it possible? simply put, it it possible to write something like this: int main () { si

RE: executable = exe + data

2006-01-01 Thread Hannu E K Nevalainen
Sam S wrote: >> * Brian Dessent [2005-12-31 15:46:50 -0800]: >> >> Sam Steingold wrote: >> >>> Is it possible? >>> >>> simply put, it it possible to write something like this: >>> >>> int main () { >>> size_t my_length; >>> >>> printf("exe size=%lld\n",my_length); >>> return 0; >>> }

Re: executable = exe + data

2006-01-01 Thread Sam Steingold
> * Brian Dessent <[EMAIL PROTECTED]> [2005-12-31 15:46:50 -0800]: > > Sam Steingold wrote: > >> Is it possible? >> >> simply put, it it possible to write something like this: >> >> int main () { >> size_t my_length; >> >> printf("exe size=%lld\n",my_length); >> return 0; >> } > > All th

Re: executable = exe + data

2006-01-01 Thread Reini Urban
2006/1/1, Sam Steingold <[EMAIL PROTECTED]>: > > * Reini Urban <[EMAIL PROTECTED]> [2005-12-30 20:14:23 +0100]: > > 2005/12/30, Christopher Faylor <[EMAIL PROTECTED]>: > >> On Fri, Dec 30, 2005 at 12:00:35AM -0500, Sam Steingold wrote: > >> >any suggestions? > >> > >> Isn't this what windows resour

Re: executable = exe + data

2005-12-31 Thread Brian Dessent
Brian Dessent wrote: > All the methods mentioned so far are essentially hacks working against > the linker, doing stuff behind its back. Why not go with the flow? Put > your data in its own section, and write a linker script to handle that > section in the desired way. You can access the addres

Re: executable = exe + data

2005-12-31 Thread Brian Dessent
Sam Steingold wrote: > Is it possible? > > simply put, it it possible to write something like this: > > int main () { > size_t my_length; > > printf("exe size=%lld\n",my_length); > return 0; > } All the methods mentioned so far are essentially hacks working against the linker, doing st

Re: executable = exe + data

2005-12-31 Thread René Berber
Sam Steingold wrote: [snip] > so, the only reasonable way is to search the executable for the magic > line... > > I hoped that there is some other way to find out where the variable is > stored in the executable file. The only portable way, yes. Otherwise you depend on the executable file format

Re: executable = exe + data

2005-12-31 Thread Sam Steingold
> * Reini Urban <[EMAIL PROTECTED]> [2005-12-30 20:14:23 +0100]: > > 2005/12/30, Christopher Faylor <[EMAIL PROTECTED]>: >> On Fri, Dec 30, 2005 at 12:00:35AM -0500, Sam Steingold wrote: >> >any suggestions? >> >> Isn't this what windows resources are good for? > > Yes. > Sam, > please see the Corm

Re: executable = exe + data

2005-12-31 Thread Sam Steingold
> * René Berber <[EMAIL PROTECTED]> [2005-12-30 01:16:52 -0600]: > > Sam Steingold wrote: > >> the only idea I have had so far is this: >> >>char string[]="this is a buffer into which I will be writing my stuff"; >>size_t my_length = atol(string); >> >> and then have a post-processor edit

Re: executable = exe + data

2005-12-30 Thread Reini Urban
2005/12/30, Christopher Faylor <[EMAIL PROTECTED]>: > On Fri, Dec 30, 2005 at 12:00:35AM -0500, Sam Steingold wrote: > >any suggestions? > > Isn't this what windows resources are good for? Yes. Sam, please see the Corman Lisp sources, how Roger implemented loading the especially attached LISP ress

Re: executable = exe + data

2005-12-30 Thread Christopher Faylor
On Fri, Dec 30, 2005 at 12:00:35AM -0500, Sam Steingold wrote: >any suggestions? Isn't this what windows resources are good for? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/

Re: executable = exe + data

2005-12-29 Thread René Berber
Sam Steingold wrote: > CLISP consists of a run time (a normal executable lisp.exe, 2.5M) > and a memory image (a binary data file lispinit.mem 2MB-10GB). > It is normally invoked as "lisp.exe -M lispinit.mem", i.e., the > application consists of two files instead of a single executable which > is

executable = exe + data

2005-12-29 Thread Sam Steingold
CLISP consists of a run time (a normal executable lisp.exe, 2.5M) and a memory image (a binary data file lispinit.mem 2MB-10GB). It is normally invoked as "lisp.exe -M lispinit.mem", i.e., the application consists of two files instead of a single executable which is generally not considered desirab