Makefiles and new libraries

View: New views
12 Messages — Rating Filter:   Alert me  

Makefiles and new libraries

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All,
I've sorted out the Makefiles to host the new C128 libraries and to be able to go through the overall build process with no errors.   To reach the goal I modified very few functions to behave differently if building for the Rabbit Control Module.
Hope it helps Alvin staying focused on the new_stdio stuff.. I promise I'll leave the tree quiet for a while, now, change it as for your needs  ;)



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry Alvin,
I already touched the "tree" again.. I couldn't resist by cleaning the thing a little more.
Be warned I fixed some missing inclusion int the new_stdlib hoping this makes it clean enough for everybody's experiments.
The only little change I did is to include the error code storage in a function: probably you were thinking for a better place...



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>Be warned I fixed some missing inclusion int the new_stdlib hoping this makes it clean enough for everybody's experiments.
>The only little change I did is to include the error code storage in a function: probably you were thinking for a better place...
Yeah, that's alright.  errno is supposed to appear in the crt0, along with any other static data.  All of new_stdio is intended to be reentrant and ROMable.  The jumptables that I removed from stdio.lst are actually intended to be part of the crt0 (well, that's how it's looking right now...) since this will give the opportunity for the compiler or user to selectively remove or add code for individual %c, %s, %d, etc converters as needed by the program.  Hopefully this will help to reduce the overall code size, particularly for large converters like %[ or floating point.

Those changes did leave the test program in an uncompilable state.  I am still a couple of steps away from having a test target up so putting it back into a compilable state is ok.  I'm currently doing a code review of existing stuff to get rid of bugs and to make sure how things work makes sense.  I had to put things aside for a while but now have more time again to finish the tty driver and hopefully get the first test target up shortly.  The tty driver is slightly fancy since it can support multiple text windows and interrupt driven key input, which has slowed things down a bit :P  Maybe I should have gone for something simple to start with but at least the result can be used as a non-trivial example of how drivers and the stdio front end interact.  The tty code calls into four or so platform specific functions.  I know dom wants to keep the model simple as it is now (customization of a couple functions to get a port up) so this idea is being continued.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by Stefano Bodrato :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Now it is compilable, test program included.
What about just releasing before the big impact work so that we can take our
time, then ?
The lib source tree seems to be at a nice state, we could try to correct
some of the 64 bit issues and go..

--------------------------------------------------
From: "alvin (alvin_albrecht@...)" <lists@...>
Sent: Friday, July 25, 2008 10:00 PM
To: <z88dk-developers@...>
Subject: Re: [z88dk-dev] Makefiles and new libraries

>
>>Be warned I fixed some missing inclusion int the new_stdlib hoping this
>>makes it clean enough for everybody's experiments.
>>The only little change I did is to include the error code storage in a
>>function: probably you were thinking for a better place...
> Yeah, that's alright.  errno is supposed to appear in the crt0, along with
> any other static data.  All of new_stdio is intended to be reentrant and
> ROMable.  The jumptables that I removed from stdio.lst are actually
> intended to be part of the crt0 (well, that's how it's looking right
> now...) since this will give the opportunity for the compiler or user to
> selectively remove or add code for individual %c, %s, %d, etc converters
> as needed by the program.  Hopefully this will help to reduce the overall
> code size, particularly for large converters like %[ or floating point.
>
> Those changes did leave the test program in an uncompilable state.  I am
> still a couple of steps away from having a test target up so putting it
> back into a compilable state is ok.  I'm currently doing a code review of
> existing stuff to get rid of bugs and to make sure how things work makes
> sense.  I had to put things aside for a while but now have more time again
> to finish the tty driver and hopefully get the first test target up
> shortly.  The tty driver is slightly fancy since it can support multiple
> text windows and interrupt driven key input, which has slowed things down
> a bit :P  Maybe I should have gone for something simple to start with but
> at least the result can be used as a non-trivial example of how drivers
> and the stdio front end interact.  The tty code calls into four or so
> platform specific functions.  I know dom wants to keep the model simple as
> it is now (customization of a couple functions to get a port up) so this
> idea is being continued.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> z88dk-developers mailing list
> z88dk-developers@...
> https://lists.sourceforge.net/lists/listinfo/z88dk-developers
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by alvin albrecht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

> Now it is compilable, test program included.
> What about just releasing before the big impact work so that we can take our
> time, then ?

Yeah that's the best way to go about it.  I would like to finish one test target before the release so that it is available at large for testing.  All that is missing right now is the tty driver.
 
I also have a few things I would like to finish:
 
* Make sure strlcat() and strlcpy() actually work
 
* Revisit some strings functions (I committed a change to at least one function that does a case-sensitive compare on the mismatching character when it should be doing a caseless compare; it's been a while so I'd like to quickly go through all of them to make sure I didn't do any other stupid things!)
 
* Consolidate all floating point math library code into a single math directory.  This will help others (and myself) understand the math lib, what is available, what is missing and how to go about expanding the fp options.
 
And some optional things if there is time before the proposed release:
 
* Make ansi compliant versions of qsort() and bsearch().  Allowing items of variable byte size does slow the code considerably but I think it's more important to be compliant.
 
* Finally fix up that A-Star search implementation in algorithms
 
I know that theoretically there was supposed to be a release on July 13 -- what about if we go for August 10?
 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Rabbit z80 Emulation

by alvin albrecht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
 
I thought the compiler was patched to automatically replace CPIR, CPI, etc with calls to rcmx_cpir, etc without having to include the following?
 
[code]
IF FORrcmx000
LIB  rcmx_cpir
ENDIF

IF FORrcmx000
   call rcmx_cpir
ELSE
   cpir                        ; find end of char *src
ENDIF
[/code]
 
Am I wrong about this or do we need to put these guards in there?
 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Rabbit z80 Emulation

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Right, but when I inserted the ($RM) commands for the Rabbit dependencies I noticed that the different routines were few..  

I thought it wasn't too messy, it kept evidence of the differences, left them compilable with the old version of the kit and left a placeholder for rabbit specific optimizations.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by Marcello Zaniboni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi. It seems I've slept all the time... but I never stopped reading your
messages :-)
Is it time for a new release? If the release date is on August 10, well...
in this case, I think I will not be able to build the setup for more a week
from that time, since I will be on hollidays from 8 to 18; and I will be
without any kind of internet connection.

Anyway... some time ago we talked about including GNU tools within the
setup. If you are absolutely sure that this does not violate the GNU GPL and
if you have enough time to explain me exactly the final result that I have
to achieve with the installation, we can try to do it. Let me know if it's
worth.

Bye,
Marcello


---


From: alvin albrecht
Sent: Sunday, July 27, 2008 9:47 PM
To: Stefano Bodrato ; z88dk-developers@...
Subject: Re: [z88dk-dev] Makefiles and new libraries

[...]

I know that theoretically there was supposed to be a release on July 13 --  
what about if we go for August 10?


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by Stefano Bodrato :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm luckier than you, I'll stay away for three weeks, leaving the 15th of
August.
Honestly I was thinking to delay the installer version release, but it is
probably a mess.. I don't know.


--------------------------------------------------
From: "Marcello Zaniboni" <mzaniboni@...>
Sent: Wednesday, July 30, 2008 11:26 AM
To: <z88dk-developers@...>
Subject: Re: [z88dk-dev] Makefiles and new libraries

> Hi. It seems I've slept all the time... but I never stopped reading your
> messages :-)
> Is it time for a new release? If the release date is on August 10, well...
> in this case, I think I will not be able to build the setup for more a
> week
> from that time, since I will be on hollidays from 8 to 18; and I will be
> without any kind of internet connection.
>
> Anyway... some time ago we talked about including GNU tools within the
> setup. If you are absolutely sure that this does not violate the GNU GPL
> and
> if you have enough time to explain me exactly the final result that I have
> to achieve with the installation, we can try to do it. Let me know if it's
> worth.
>
> Bye,
> Marcello
>
>
> ---
 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well since everyone's on vacation it's probably best to wait until the end of August or beginning of September.

Including gnu utils in the win32 install would be nice as it allows win32 users to compile the z80 libraries.  I wouldn't mind looking into it further but honestly it's not so terrible to have a separate link available to download and install the tools.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by norecess (arnaud.storq@gmail.com) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>Well since everyone's on vacation it's probably best to wait until the end of August or beginning of September.
OK.


>Including gnu utils in the win32 install would be nice as it allows win32 users to compile the z80 libraries.  I wouldn't mind looking into it further but honestly it's not so terrible to have a separate link available to download and install the tools.
I think we already talked about it and there should be no licence problem to include the GNU tools.
Marcello, could you keep the original GNU tools installer and launch it from within the z88dk one ?



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers

Re: Makefiles and new libraries

by Marcello Zaniboni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I think we already talked about it and there should be no licence problem
> to include the GNU tools.
> Marcello, could you keep the original GNU tools installer and launch it
> from within the z88dk one?

Well, yes ...maybe. I mean, at the moment the setup runs an executable (the
extension that I wrote in C for adjusting the paths). But I have not studied
yet a way to execute a program conditionally (it should be nice to give the
user the possibility to choose it he/she wants to run the original GNU tools
installer).

Where can I download the original GNU tools installer?

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
z88dk-developers mailing list
z88dk-developers@...
https://lists.sourceforge.net/lists/listinfo/z88dk-developers
LightInTheBox - Buy quality products at wholesale price!