Skip to content

Instantly share code, notes, and snippets.

View Irvise's full-sized avatar

Fernando Oleo Blanco Irvise

View GitHub Profile
@Irvise
Irvise / umat.cpp
Created August 21, 2024 09:32
umat.cpp generated by MFront for Elasticity.mfront
/*!
* \file umat.cpp
* \brief
* \author Thomas Helfer
* \date 21/03/2016
*/
#include<iostream>
#include<cstdlib>
@Irvise
Irvise / gist:a1f6ed3caf57c6ad29e821407de48ada
Created March 11, 2020 20:20
Disassembly of Ada's blink
;-- section..text:
;-- segment.LOAD0:
;-- segment.ehdr:
;-- .text:
;-- _start:
(fcn) entry0 332
entry0 ();
0x20100000 auipc gp, 0x5ff01 ; [01] -r-x section size 9004 named .text
0x20100004 addi gp, gp, -loc._DEFAULT_STACK_SIZE
0x20100008 addi sp, gp, 960
@Irvise
Irvise / gist:2499c2a6776d0040538ec57a32c113a6
Created March 11, 2020 20:17
Disassembly of Freedom Studios' elf
;-- section..init:
;-- segment.LOAD0:
;-- .init:
;-- _enter:
(fcn) entry0 280
entry0 ();
0x20010000 auipc gp, 0x5fff1 ; entry.S:24 la gp, __global_pointer$ ; [01] -r-x section size 404 named .init
0x20010004 addi gp, gp, 648
0x20010008 auipc t0, 0x0 ; entry.S:29 la t0, early_trap_vector
0x2001000c addi t0, t0, 88
@Irvise
Irvise / Output of debug build
Created March 11, 2020 20:04
Freedom Studio building of hello world
20:58:38 **** Build of configuration debug for project sifive-hifive1-revb-hello ****
make all CONFIGURATION=debug
cd /home/fernando/wsFreedomStudio/sifive-hifive1-revb-hello/bsp/build/debug/ && \
CFLAGS="-march=rv32imac -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/home/fernando/wsFreedomStudio/sifive-hifive1-revb-hello/bsp/install/include --specs=nano.specs -O0 -g" \
/home/fernando/wsFreedomStudio/sifive-hifive1-revb-hello/freedom-metal/configure \
--host=riscv64-unknown-elf \
--prefix=/home/fernando/wsFreedomStudio/sifive-hifive1-revb-hello/bsp/install \
--libdir=/home/fernando/wsFreedomStudio/sifive-hifive1-revb-hello/bsp/install/lib/debug \
--disable-maintainer-mode \
--with-preconfigured \