Skip to content

Instantly share code, notes, and snippets.

View vaaino's full-sized avatar
🇫🇮

vaino vaaino

🇫🇮
View GitHub Profile
@hackpascal
hackpascal / 0001-gcc-4.8.4-add-lexra-support.patch
Created December 17, 2017 14:37
Patch to gcc-4.8.4 for Lexra processors
--- gcc-4.8.4.orig/gcc/config/mips/mips.c
+++ gcc-4.8.4/gcc/config/mips/mips.c
@@ -7062,6 +7062,8 @@ mips_block_move_straight (rtx dest, rtx
if (MEM_ALIGN (src) == BITS_PER_WORD / 2
&& MEM_ALIGN (dest) == BITS_PER_WORD / 2)
bits = BITS_PER_WORD / 2;
+ else if (TARGET_LEXRA || TARGET_RLX)
+ bits = MIN (MEM_ALIGN (src), MEM_ALIGN (dest));
else
bits = BITS_PER_WORD;
@hackpascal
hackpascal / 0001-binutils-2.24-add-lexra-support.patch
Created December 17, 2017 14:35
Patch to binutils-2.24 for Lexra processors (LX4180/RLX4181/...)
--- binutils-2.24.orig/bfd/bfd-in2.h
+++ binutils-2.24/bfd/bfd-in2.h
@@ -1938,6 +1938,12 @@ enum bfd_architecture
#define bfd_mach_mipsisa64 64
#define bfd_mach_mipsisa64r2 65
#define bfd_mach_mips_micromips 96
+#define bfd_mach_mips4180 4180
+#define bfd_mach_mips4181 4181
+#define bfd_mach_mips4281 4281
+#define bfd_mach_mips5181 5181
@suyash
suyash / client.c
Created January 2, 2017 16:36
TCP echo client-server in C
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
int main() {
const char* server_name = "localhost";
const int server_port = 8877;
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active March 21, 2025 16:22
Ultimate guide to low-latency osu on linux