This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ld/emultempl/pe.em.orig 2010-03-26 20:13:50.000000000 +0900 | |
+++ ld/emultempl/pe.em 2010-03-26 20:16:19.000000000 +0900 | |
@@ -1011,14 +1011,13 @@ | |
|| defined (TARGET_IS_arm_epoc_pe) \ | |
|| defined (TARGET_IS_arm_wince_pe) | |
if (!link_info.relocatable) | |
- pe_dll_build_sections (output_bfd, &link_info); | |
- else | |
- pe_exe_build_sections (output_bfd, &link_info); | |
#else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- gcc/config/mips/mips.h.orig 2010-03-29 16:32:25.000000000 +0900 | |
+++ gcc/config/mips/mips.h 2010-03-29 16:32:32.000000000 +0900 | |
@@ -4237,6 +4237,12 @@ | |
} \ | |
\ | |
HALF_PIC_DECLARE (NAME); \ | |
+ if (TREE_PUBLIC (DECL)) \ | |
+ { \ | |
+ fprintf (STREAM, "\t.def\t"); \ | |
+ assemble_name (STREAM, NAME); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- gcc/config.gcc.orig 2010-03-29 17:07:55.000000000 +0900 | |
+++ gcc/config.gcc 2010-03-29 17:34:50.000000000 +0900 | |
@@ -1822,6 +1822,10 @@ | |
tmake_file="mips/t-r3900 mips/t-libgcc-mips16" | |
use_fixproto=yes | |
;; | |
+mips*-*-pe) | |
+ tm_defines="${tm_defines} TARGET_ENDIAN_DEFALUT=0 TARGET_MIPS_PE=1" | |
+ configure_default_options="{ { NULL, NULL} }" | |
+ ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- hw/mc146818rtc.c.orig 2010-03-30 02:01:09.000000000 +0900 | |
+++ hw/mc146818rtc.c 2010-03-30 02:01:28.000000000 +0900 | |
@@ -587,7 +587,7 @@ | |
isa_init_irq(dev, &s->irq, isairq); | |
s->cmos_data[RTC_REG_A] = 0x26; | |
- s->cmos_data[RTC_REG_B] = 0x02; | |
+ s->cmos_data[RTC_REG_B] = 0x02 | REG_B_DM; | |
s->cmos_data[RTC_REG_C] = 0x00; | |
s->cmos_data[RTC_REG_D] = 0x80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin-base64 664 ce-test-2.tar.bz2 | |
QlpoOTFBWSZTWdiL2hoABZJ/////9Pz07///fv/f9P/v3+pwEsgBYsiUU8UGAkBqUEAJ0AWkwaUV | |
EtkytYC2GSQBGk2o1P0KenpTJjTQaajGpiYhpppiaNDJkaaaaMQGmJo02k00DI0NGQBJIENBCemi | |
J6UfqTwpp6gGgeoHqZNAeoDQAaAMmQAaADQA0AaBIiIhGKnogeT0ptJvUQ8KaPU0/Kh6QyAPU0Nq | |
aA0G1AGnqABtI0DQABoQZMAJgTCYmhoxMTAJgEyBoaNMRgJoYAhgQZMAAAJhBkwAmBMJiaGjExMA | |
mATIGho0xGAmhgCGBBkwAAAmP9RoWtsVBajkSaWPj10R56oEDkyxEiqHGlKdDiLyVEd523l6Ryip | |
dMyQ78LZcSC14jDNmopU3kbz9RjRAVks5kiNKbj1UNctLAYCE1m3ali2MuGI4CzrjTB/o3G16Hb3 | |
BW3QRxxMGFfHdS27vySQPkZ2SDO7c16bL36KQOFR1+5W+VbaXuiRIFISlZEoVbIV+3l6VtbzSUtW | |
jAdCCGLSYX2fC0pmEjPaFXVwWa2vNy0vNnbQsTDLx8ci4ztYkk2Zw980kBz2LOaEtj94EtTLzJ0W | |
khu7G8khpD0oAxxSRR4kIODqQodGgmbZQbXdEzvXAwloEi4wDntIRViFVpNiG0XGjWeuzymL8oAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
public class XmlParser : IDisposable | |
{ | |
public TextReader Stream { get; private set; } | |
public string Text { get; private set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Division | |
{ | |
static void Main(string[] args) | |
{ | |
var r = new Random(); | |
for (int i = 0; i < 10; i++) | |
{ | |
int a = r.Next(), b = r.Next() & 0xffff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
let div (a:int) (b:int) = | |
if b = 0 then raise (new DivideByZeroException()) | |
let aa, ab = uint32(Math.Abs(a)), uint32(Math.Abs(b)) | |
if aa < ab then 0 else | |
let rec search ab v = | |
if ab > aa then ab >>> 1, v >>> 1 else search (ab <<< 1) (v <<< 1) | |
let ab, v = search ab 1u | |
let rec div ret aa ab v = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
let crcmod (a:int) (b:int) = | |
if b = 0 then raise (new DivideByZeroException()) | |
let aa, ab = uint32(Math.Abs(a)), uint32(Math.Abs(b)) | |
if aa < ab then 0 else | |
let shiftToTop v = | |
let rec stt v n = | |
if (v &&& 0x80000000u) <> 0u then n else stt (v <<< 1) (n + 1) | |
stt v 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stack> | |
int main(int argc, char* argv[]) { | |
char heap[65536]; //メモリ | |
char* order = NULL; //実行する命令を保存する配列 | |
unsigned short ptr = 0; //メモリのポインタ |