Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNUMake option? #16

Open
debmint opened this issue Mar 25, 2022 · 6 comments
Open

GNUMake option? #16

debmint opened this issue Mar 25, 2022 · 6 comments

Comments

@debmint
Copy link

debmint commented Mar 25, 2022

I wonder why in the GNUMake-files, you use the option "-mx32" instead of "-m32". I have two Linux distros - Manjaro and Debian (10). and neither will compile without installing a bunch of packages. Both are set up to build with the -m32 opt. AIUI, -mx32 builds a 64-bit program with longs,etc set to that of 32-bit systems, while -m32 simply builds a 32-bit program. I have a Mint system that has the proper modules, possibly all were packaged together.

I was looking over your CC09 sources and noticed that this is the "old" version - the same as we have available on the CoCo. The version on toolshed (in the c3 directory) is the "new" version where the first parameter to a function is passed in the "D" register. If it's not secret, I was just wondering where you came up with this version. BTW, the programs in the Level 2 Development pak - rma, etc, are built wih the "new" version.

@Deek
Copy link
Owner

Deek commented Jun 6, 2022

It started out as the "new" version, which was incompatible with all libraries and compiled code for the old compiler. I figured out what made it incompatible, and hid that code behind #ifdef REGPARMS sections.

@Deek
Copy link
Owner

Deek commented Jun 6, 2022

You can change the compiler options to use -m32 if you like, it still works. I am using -mx32 because it's more likely to break if I do something wrong.

@debmint
Copy link
Author

debmint commented Jun 7, 2022 via email

@Deek
Copy link
Owner

Deek commented Jun 8, 2022

Actually, the libraries are included in the c3 package in toolshed-code.

Yes, but they can't be used by the old compiler and the new compiler can't use libs for the new one. For that reason, it's pretty much a non-starter unless we can get real source for every lib available. I kept the code working, you just need to enable it to do test compiles etc. on Linux.

I'm assuming you might be more interested in doing things on native coco or emulator, but if you would be interested in incorporating my rlink into your project, I'd be happy to help get it done. I played around a bit with merging a git project into another with its history and was able to do this on some of my local repos.

I'm reasonably experienced with importing parts of repositories with history into projects, where is the repo located?

@debmint
Copy link
Author

debmint commented Jun 8, 2022 via email

@debmint
Copy link
Author

debmint commented Jun 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants