search for: myput

Displaying 7 results from an estimated 7 matches for "myput".

Did you mean: mmput
2019 Jan 27
2
How does LLVM know where to resolve declared only functions?
...system functions for certain function calls (but not always default to system functions) when there are local functions with the same name? ==> main.c <== /* vim: set noexpandtab tabstop=2: */ #include <stdio.h> int main() { puts("Hello World!"); return 0; } ==> myputs.c <== /* vim: set noexpandtab tabstop=2: */ #include <stdio.h> int myputs(char *s) { return printf("myputs:%s\n", s); } $ ./main1.sh clang -Wall -pedantic -S -emit-llvm -c -o main.ll main.c clang -Wall -pedantic -S -emit-llvm -c -o myputs.ll myputs.c clang -Wall -pedantic...
2019 Jan 26
2
How does LLVM know where to resolve declared only functions?
Hi In the generated .ll file, it may have something like this. How does LLVM know where to look for the definition of printf? Is it documented somewhere? Thanks. declare i32 @printf(i8*, ...) #1 -- Regards, Peng
2009 Jun 01
1
error on implementing printf
hello, all. here is my implementation of printf for use in syslinux core. #include <stdio.h> #include <unistd.h> #define BUF_SIZE 1024 char buf[BUF_SIZE]; extern void myputs(const char *); int printf(const char *format, ...) { va_list ap; int rv; #if 1 myputs("DEBUG:the string we want fomart is\n\r"); myputs(format); #endif va_start(ap, format); rv = vsprintf(buf, format, ap); va_end(ap); myputs(buf); return rv; } we...
2009 May 25
4
Crash with core32 (syslinux-3.81-pre12-68-g4a211f6)
I got a qemu crash and errors reported in bochs while trying to get latest core32 branch working (pxelinux): qemu: fatal: Trying to execute code outside RAM or ROM at 0xe6e8aa07 EAX=6e0c7811 EBX=000034b3 ECX=ca68b338 EDX=00000048 ESI=750e3fff EDI=00000020 EBP=d07e4988 ESP=00102324 EIP=e6e8aa07 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0028 00000000 ffffffff 00cf9300 CS =0020
2007 Aug 21
1
[NetBIOS] Registering new name?
...'C:\>nbtstat -n ' ' FRED <03> UNIQUE Registered ' MY_GREAT_SERVER<03> UNIQUE Registered ' 'C:\>net name 'Name '----------------------------------------------------------------- 'MYPUTER 'FRED 'The command completed successfully. ' 'C:\>net send fred test 'The message was successfully sent to FRED. ' 'C:\>net send my_great_server test 'An error occurred while sending a message to MY_GREAT_SERVER. &...
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...len equ ($-feature_flags) diff --git a/core/console.c b/core/console.c index 282c57f..3b545bb 100644 --- a/core/console.c +++ b/core/console.c @@ -1,18 +1,15 @@ #include <stddef.h> #include <com32.h> +#include <core.h> #include <stdio.h> #include <string.h> void myputchar(int c) { - static com32sys_t ireg; - if (c == '\n') myputchar('\r'); - ireg.eax.b[1] = 0x02; - ireg.edx.b[0] = c; - __intcall(0x21, &ireg, NULL); + writechr(c); } void myputs(const char *str) diff --git a/core/diskfs.inc b/core/diskfs.inc index 0...