sparc

Makefile issues - fatal error in reader

百般思念 提交于 2019-12-02 05:53:00
问题 I am having some issues with a makefile I am creating for a school project. I am compiling and assembling a C file and a SPARC assembly file (respectively) and linking them. I'm working in a Unix environment. Here is the makefile: proj09.exe: proj09.driver.o proj09.support.o <tab>gcc -Wall proj09.driver.o proj09.support.o -o proj09.exe proj09.driver.o: proj09.driver.c /user/cse320/Projects/project09.support.h <tab>gcc -Wall -c proj09.driver.c /user/cse320/Projects/project09.support.h proj09

“Undefined Symbol _memset”

点点圈 提交于 2019-12-02 04:36:43
问题 I asked a similar question, but I have some update which is really confusing me. Essentially, I want to link a number of object files with the linker as follows: /usr/ccs/bin/ld -o q -e start_master -dn -z defs -M ../../../mapfile.q {list of object files} I get the following error: Undefined first referenced symbol in file _memset reconf.o The interesting things is, that memset is not referenced in reconf.c and I also grep'ed the whole directory but there is also no reference in any of the

“Undefined Symbol _memset”

感情迁移 提交于 2019-12-02 00:47:55
I asked a similar question, but I have some update which is really confusing me. Essentially, I want to link a number of object files with the linker as follows: /usr/ccs/bin/ld -o q -e start_master -dn -z defs -M ../../../mapfile.q {list of object files} I get the following error: Undefined first referenced symbol in file _memset reconf.o The interesting things is, that memset is not referenced in reconf.c and I also grep'ed the whole directory but there is also no reference in any of the other files to _memset. Therefore I am wondering why I get this error message from the linker, although

Makefile issues - fatal error in reader

我的未来我决定 提交于 2019-12-01 22:51:00
I am having some issues with a makefile I am creating for a school project. I am compiling and assembling a C file and a SPARC assembly file (respectively) and linking them. I'm working in a Unix environment. Here is the makefile: proj09.exe: proj09.driver.o proj09.support.o <tab>gcc -Wall proj09.driver.o proj09.support.o -o proj09.exe proj09.driver.o: proj09.driver.c /user/cse320/Projects/project09.support.h <tab>gcc -Wall -c proj09.driver.c /user/cse320/Projects/project09.support.h proj09.support.o: proj09.support.s <tab>gcc -Wall proj09.support.s When I try to make it, though, I get a

Why the %r0 of SPARC or MIPS, is always 0?

丶灬走出姿态 提交于 2019-11-30 23:33:16
I know that when you read %r0 in SPARC CPU (and MIPS), always return 0, but I like to know Why ? What design decision is behind this and why ? It's just the way the CPU was designed. Ensuring that r0 is always set to zero is, for one thing, a way to avoid potentially costly memory accesses for a very common value. On one hand (reading), it's handy to have a register set aside to contain the value of zero so that you can use it. Otherwise, you would have to load zero into a register yourself. Many RISC processors tend to favour data manipulation in registers, accessing memory only for load and

undefined reference to `__sync_val_compare_and_swap_4' error at compilation, using gcc 4.1.1 and 4.2.0 for Sparc v8 target

风流意气都作罢 提交于 2019-11-28 14:05:00
Using crosstool scripts i've built under Cygwin the following compilers gcc-4.1.1 and 4.2.0 20061024 (prerelease) for Sparc architecture: $ ./sparc-unknown-linux-gnu-gcc -v Using built-in specs. Target: sparc-unknown-linux-gnu Configured with: /crosstool-0.43/build/sparc-unknown-linux-gnu/gcc-4.1.1-glibc-2.3.6/gcc-4.1.1/configure --target=sparc-unknown-linux-gnu --host=i686-host_pc-cygwin --prefix=/opt/crosstool/gcc-4.1.1-glibc-2.3.6/sparc-unknown-linux-gnu --with-headers=/opt/crosstool/gcc-4.1.1-glibc-2.3.6/sparc-unknown-linux-gnu/sparc-unknown-linux-gnu/include --with-local-prefix=/opt

Is it possible to install docker on Sparc machines?

旧巷老猫 提交于 2019-11-28 11:58:54
问题 I have a M5000 Sparc server which I have installed a solaris Os version 11.3 ( SunOS RT5 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise ) on it. Is it possible to install docker-ce on this machine? I have tested some workaround like using MobyProject (opensource docker) but non of them helped. What is the solution for dockerization on sparc systems? 回答1: There currently is not any support of Docker on Solaris. Oracle's container solution for Solaris has been Oracle Solaris Zones. There has been

How to calculate division remainder in SPARC Assembly?

末鹿安然 提交于 2019-11-27 08:16:01
问题 Here is the pseudo code which computes division of two positive integers. HR register saves remainder, and LR saves dividend. (and eventually saves root) However I think this algorithm has some problem. Because this algorithm sometimes don't recover subtraction.(Division is a continuation of subtraction.) For example 6 / 3 (0110 / 011) This algorithm subtract -3 one more time. (This situation never occur when we calculate this division by hand) So I think this algorithm has some problem. Don