Questions tagged [mips64]

118 questions
15
votes
2 answers

MIPS architecture 'syscall' instruction

What is the role of syscall instruction in MIPS?
Bob Jamaica
  • 189
  • 1
  • 1
  • 7
7
votes
2 answers

Loading an address in MIPS64

This is probably a simple, obvious thing I'm just not seeing, but how do I load an address in a MIPS64 processor? In a MIPS32 processor the following assembler pseudo-instruction: la $at, LabelAddr Expands into: lui $at, LabelAddr[31:16] ori…
JUST MY correct OPINION
  • 35,674
  • 17
  • 77
  • 99
7
votes
1 answer

The difference between 'ADD' and 'DADD'

What is the difference between 'ADD' and 'DADD' MIPS instructions? I know that 'DADD' stands for Double Word Add but I do not know the difference between 'ADD' and 'DADD'. Moreover, it appears that both instructions have the same syntax,…
user3185252
  • 85
  • 1
  • 5
5
votes
3 answers

How to distinguish between mips cpu types on linux when dpkg-architecture is absent?

Short question: how can I reliably distinguish between mips, mipsel, mips64 and mips64el on any linux distribution? Longer explanation: We provide statically built/distribution independent binaries (for TeX) for many architectures. Installation…
Mojca
  • 304
  • 1
  • 3
  • 14
5
votes
2 answers

Mars MIPS Simulator not functioning, installation issues?

I have downloaded the Mars MIPS Simulator .jar file, and I have downloaded the java jdk file from oracle. Whenever I open the jar file, the IDE is there, but everything is greyed-out. I can't even edit the text in the window. When you select…
Zach
  • 85
  • 1
  • 1
  • 9
4
votes
2 answers

MIPS program jr $ra instructions and stack handling

I am new to MIPS programming and have been struggling to understand the MIPS program and how it flows. How can I understand it? Below is the code. My doubt is in RTN function where $ra is returned where the execution supposed to return after jr…
user2206366
  • 461
  • 3
  • 6
  • 17
4
votes
1 answer

Layout in memory of 64-bit applications

64-bit OS refers to the bit width of the general purpose registers. It's able to process 64 bits (data + operations) at a time. We know that in order for the 64-bit system to be truly useful, programmers need to write 64-bit applications. However, I…
h9uest
  • 10,958
  • 3
  • 18
  • 24
4
votes
2 answers

access file in mips using mars tool

I'm trying to do some access on file using mips instruction. I want to read file line by line not all of the file at a time so this code(1) does not work. Also I want to write to the file and not overwrite! Can any one help me? Code: Open a…
Sundus Karaja
  • 41
  • 1
  • 2
2
votes
1 answer

Save outputs directly after inputs in data segment

This is my code: .data .ascii "r", "o", "r", "y", "\n" key: .word 2 .text .globl main main: la $t0, string move $t5, $t0 # preserve original data la $t1, key # load cypher into t1 reg lw $a1,…
Rokky100
  • 67
  • 6
2
votes
1 answer

Attempting to convert the following C Code to High Level MIPS Assembly code but no output, why?

I have already tried changing the adding more space to the stack and that didn't seem to help ro change anything also in the uppercase label function I initially had the register names as $s4, $s5, $s6 which I change to $s0, $s1, and $s2…
2
votes
1 answer

What is the name of the default code model used by gcc for MIPS 64?

gcc for MIPS 64 is using a complex method to locate and invoke a function not present in the compilation unit.  What is the name of this code model (and where is it documented)?  I searched but did not find it forthcoming.  It involves $28/$gp and…
Erik Eidt
  • 23,049
  • 2
  • 29
  • 53
2
votes
1 answer

Why does Branch Target Buffer affect return from function calls? [WinMIPS64]

I'm was writing some MIPS code for college, to see how functions within functions work, and everything worked fine at first. I'm using the WinMIP64 simulator. Then, after I turned BTB on, everything was breaking (it got stuck in an infinite loop…
BasilBrush
  • 90
  • 9
2
votes
0 answers

Building 64-bit MIPS Big endian cross-compiler toolchain

I am trying to build a 64-bit MIPS big endian cross-compiler toolchain. I have been using the following guide (substituting aarch64 for mips64): https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/ I have used the following versions of…
Brian Waters
  • 599
  • 4
  • 9
  • 19
2
votes
1 answer

Displaying assembly at Visual Studio

Is it possible to see an assembly of C/C++ code at Microsoft Visual Studio? Can I ask to see specific assembly type (MIPS assembly)?
sunny
  • 1,887
  • 3
  • 29
  • 40
2
votes
1 answer

Run a .spim file using spim in Ubuntu

For Some purpose , I am writing a MIPS file for finding the second largest element of an array How do I run it to get the output? I need the command lines for spim stimulator Iam using Ubuntu 16.04 xenial by the way
1
2 3 4 5 6 7 8