flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Unix > fasm port with libc | 
  
| Author | 
  | 
              
| 
                  
                   scientica 09 Jun 2004, 12:47 
                  Works fine on Fedora Core 1 (kernel 2.6.4, gcc 3.3.2)
 
                  
                Also, g++ [EDIT](C++ compiler)[/EDIT] works too, thought the elf is a few (24) bytes larger compiled with g++ than gcc.  | 
              |||
                  
  | 
              
| 
                  
                   f0dder 09 Jun 2004, 14:37 
                  probably because the GNU tools like to insert all sorts of strings in your executables... try running 'strings' on gcc and g++ compiled versions, you should see some differences I think. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   scientica 10 Jun 2004, 13:05 
                  before strip (`man 1 strip`):
 
                  
                71752 fasm 71776 fasm_g++ after stripping: 69620 fasm 69644 fasm_g++ self compiled fasm: 58938 fasm it seems it's not just the text that differs (also binary), but well, doesn't really matter. It uses libc, and it works - regardless of wheter GNU tools add a little extra or not  | 
              |||
                  
  | 
              
| 
                  
                   f0dder 10 Jun 2004, 13:59 
                  ah, libc is linked in - then it's probably C++ init code (c0/crt0) that is a bit larger than the C init code. Just a guess anyway. Nothing much to worry about anyway, I wouldn't worry about 10k  
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   crc 11 Jun 2004, 13:15 
                  It almost works under BeOS 5. It will assemble sample programs (including itself   
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   NULLPointer 13 Jun 2004, 03:19 
                  I probed it on BeOS 5 PE and it crashes at the end, i want to know the way to find where is the error because its imposible to debug it under BDB. is there an easy way?
 
                  
                Thanks.  | 
              |||
                  
  | 
              
| 
                  
                   f0dder 13 Jun 2004, 12:06 
                  You could always do the tedious thing - insert a lot of print statements, and see when it dies... aren't there any nice debuggers for BeOS? 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   crc 13 Jun 2004, 12:07 
                  Ok, I managed to make it work perfectly under BeOS 5 PE (and Pro). Under BeOS (and similar OSes), the exit function needs to be called to handle some cleanup. I've attached a new version (full code + a BeOS binary) for you all to test.
 
                  
                (Edit: obsolete attachment has been removed)  | 
              |||
                  
  | 
              
| 
                  
                   gorshing 14 Jun 2004, 01:55 
                  Privalov wrote: This is a new port of fasm I've made using the ELF object format On my machine ... Code: gorshing [/home/gorshing/devl/asm]$ file fasm_libc fasm_libc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped gorshing [/home/gorshing/devl/asm]$ file ~/fasm/fasm /home/gorshing/fasm/fasm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped gorshing [/home/gorshing/devl/asm]$ Weren't you always using the ELF format? Or am I missing something? _________________ gorshing  | 
              |||
                  
  | 
              
| 
                  
                   crc 14 Jun 2004, 02:02 
                  Quote: Weren't you always using the ELF format? Or am I missing something? It's a port using ELF and the standard C library. The ELF support is not new, but the LIBC backing is new.  | 
              |||
                  
  | 
              
| 
                  
                   gorshing 14 Jun 2004, 03:30 
                  I understand that, but the way Privalov stated that, it seemed to me that he implied that ELF was new also. 
                  _________________ gorshing  | 
              |||
                  
  | 
              
| 
                  
                   Tomasz Grysztar 14 Aug 2004, 20:10 
                  I have updated the attachment in first post - now it contains the libc interface adapted to use with fasm 1.54 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   Tommy 18 Sep 2004, 15:46 
                  Will you continue this distribution Privalov? 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   stanks 26 Dec 2004, 08:46 
                  Hi crc
 
                  
                This version (1.52) works ok under BeOS. No segmentation fault. stanks  | 
              |||
                  
  | 
              
| 
                  
                   crc 26 Dec 2004, 13:26 
                  Ok, I'll see what's been changed then... 
                  
                 | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.