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

compiler won't generate .o* files when .c file present #190

Open
gambiteer opened this issue Mar 9, 2016 · 4 comments
Open

compiler won't generate .o* files when .c file present #190

gambiteer opened this issue Mar 9, 2016 · 4 comments

Comments

@gambiteer
Copy link
Collaborator

This is funny.

heine:> gsc -c matrix-test
heine:
> ls -lrt matrix-test.*
-rw-rw-r-- 1 lucier lucier 2109 Mar 9 16:35 matrix-test.scm~
-rwxrwxr-x 1 lucier lucier 14088 Mar 9 16:37 matrix-test.o1*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:37 matrix-test.o2*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:38 matrix-test.o3*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:38 matrix-test.o4*
-rw-rw-r-- 1 lucier lucier 2110 Mar 9 16:39 matrix-test.scm
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:39 matrix-test.o5*
-rw-rw-r-- 1 lucier lucier 49317 Mar 9 17:06 matrix-test.c
heine:> gsc matrix-test
heine:
> ls -lrt matrix-test.*
-rw-rw-r-- 1 lucier lucier 2109 Mar 9 16:35 matrix-test.scm~
-rwxrwxr-x 1 lucier lucier 14088 Mar 9 16:37 matrix-test.o1*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:37 matrix-test.o2*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:38 matrix-test.o3*
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:38 matrix-test.o4*
-rw-rw-r-- 1 lucier lucier 2110 Mar 9 16:39 matrix-test.scm
-rwxrwxr-x 1 lucier lucier 25872 Mar 9 16:39 matrix-test.o5*
-rw-rw-r-- 1 lucier lucier 49317 Mar 9 17:06 matrix-test.c

No matrix-test.o6! I was pulling my hair out today with some performance problems, because I kept running the interpreted code!

@gambiteer
Copy link
Collaborator Author

Marc: This seems important, and should be easy to fix, but I don't know how to fix it.

Please consider working on it and fixing it.

@feeley
Copy link
Member

feeley commented Apr 2, 2016

Can you debug this and propose a fix? I suspect it is because matrix-test.c exists.

@gambiteer
Copy link
Collaborator Author

On 04/02/2016 01:30 PM, Marc Feeley wrote:

Can you debug this and propose a fix? I suspect it is because
matrix-test.c exists.

Yes, that's exactly why there's a problem.

Marc, I don't even know in which file to start looking. You probably
know the name of the function that contains the broken logic. It's not
efficient for me to debug this one.

Brad

@gambiteer
Copy link
Collaborator Author

I looked a bit more at this today, but no progress. It does seem to happen only from the command line, (compile-file "foo") generates a new .o file even if foo.c exists.

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