Home | Forums | What's new | Resources | |
asmsh and shc |
vbt - May 6, 2003 |
vbt | May 8, 2003 | ||||
Thanks but I found only that... and I'm not good enough to solve my problem Here is the code that give me some problems, there is also a C file but it crash at the link time because vars. are defined in this file :
Code:
|
vbt | May 31, 2003 | |||
.... |
RadSil | Jun 4, 2003 | |||
I think the only way to tell for sure would be to link a program with the libraries that were built and see if you get linker errors. Though, most GCC objects don't end in *.obj, so maybe the "g" strt1_g.o and strt2_g.o is for GCC, and the "h" in strt1_h.obj and strt2_h.obj is for Hitachi (SHC)? Pure speculation there. Try linking the libs as they compiled with a little program first, and report back if it fails |
vbt | Jun 22, 2003 | |||
I've linked the source code with those two objects with only few changes. (for instance replace of "ENDOF_B" by "__bend"). The prog. still work after adding thos objects but I have no idea on how to be sure their unctions are called, it tried to add a exit(0) without success. It seems that __INIT should be called before the main but it doesn't because i use a saturn.lnk which contains this : SLSTART 0x06004000 : { ___Start = .; *(SLSTART) } and i use some calls of the SGL (slinitsystem, sltvon) with my own work area.o. Does someone already make a prog without using SGL ? and how i can be sure the prog uses _INIT to boot instead of main ? |
antime | Jun 22, 2003 | |||
I believe that __INIT should be called in crt0 (the startup code), which then executes your main(). You'll have to include it in your linking stage manually if your makefile doesn't do it already (otherwise the compiler default one will be used). |
vbt | Jun 22, 2003 | |||
thanks for the help Antime LDFLAGS = -T $(LOCATE_FILE) -e $(ENTRY_POINT) -nostartfiles where ENTRY_POINT = START and START = P,D,B(6010000) (found in lnk file) when i try to compile with that I recieve errors and then i removed all of that to use std ldflags. |
vbt | Jun 22, 2003 | |||
in fact it was easy I only had to use "-e -Xlinker START" and it call _INIT |
mrkotfw | Jun 25, 2003 | |||
/me doesnt know ASM |