On Sat, Feb 14, 2004 at 06:19:42PM +0100, Leopold Toetsch wrote:
> If that runs and it works you get a stabs file (for parrot -d -j). This is
> compiled via an hardcoded line with "as". s. jit_debug.c

mh ok, I do get the stabs file,  and apparently the reason no objfile gets
created is that "as" complains with loads of warnings and some errors when
given the stab file.

Attached is an example stab file generated for a very simple pasm, and the
warnings/errors "as" complains about when feeded with it..  mainly hopping
that you can spot the problem? :)

> leo

Thanks,
Stéphane
set I1, 333
end
.stabs "set.pasm",100,0,0,0
.stabs "jit_func:F(0,1)",36,0,1,267f10
.stabs "Void:t(0,0)=(0,1)",128,0,0,0
.stabs "Char:t(0,1)=r(0,1);-128;127;",128,0,0,0
.stabs "Byte:t(0,2)=r(0,2);0;255;",128,0,0,0
.stabs "Int16:t(0,3)=r(0,3);-32768;32767;",128,0,0,0
.stabs "UInt16:t(0,4)=r(0,4);0;65535;",128,0,0,0
.stabs "Int32:t(0,5)=r(0,5);0020000000000;0017777777777;",128,0,0,0
.stabs "UInt32:t(0,6)=r(0,6);0000000000000;0037777777777;",128,0,0,0
.stabs "Int64:t(0,7)=r(0,7);01000000000000000000000;0777777777777777777777;",128,0,0,0
.stabs "UInt64:t(0,8)=r(0,8);0000000000000;01777777777777777777777;",128,0,0,0
.stabs "Single:t(0,9)=r(0,8);4;0;",128,0,0,0
.stabs "Double:t(0,10)=r(0,8);8;0;",128,0,0,0
.stabs "LongDouble:t(0,11)=r(0,8);12;0;",128,0,0,0
.stabs "INTVAL:t(0,12)=(0,5);",128,0,0,0
.stabs "FLOATVAL:t(0,13)=(0,10);",128,0,0,0
.stabs "Ptr:t(0,14)=*(0,0);",128,0,0,0
.stabs "CharPtr:t(0,15)=*(0,1);",128,0,0,0
.stabs "STRING:t(0,16)=*(0,17)",128,0,0,0
.stabs 
"Parrot_String:T(0,17)=s40bufstart:(0,14),0,32;buflen:(0,6),32,32;flags:(0,12),64,32;bufused:(0,12),128,32;strstart:(0,15),160,32;;",128,0,0,0
.stabs 
"PMCType:T(0,18)=eArray:1,Boolean:2,Closure:3,Compiler:4,Continuation:5,Coroutine:6,CSub:7,delegate:8,Env:9,Eval:10,Exception:11,Exception_Handler:12,Float:13,Integer:14,IntList:15,Iterator:16,Key:17,ManagedStruct:18,mmd_default:19,MultiArray:20,NCI:21,Null:22,OrderedHash:23,ParrotClass:24,ParrotInterpreter:25,ParrotIO:26,ParrotLibrary:27,ConstParrotLibrary:28,ParrotObject:29,ParrotThread:30,PerlArray:31,PerlEnv:32,PerlHash:33,PerlInt:34,PerlNum:35,PerlString:36,PerlUndef:37,Pointer:38,Random:39,Ref:40,RetContinuation:41,SArray:42,ConstSArray:43,Scratchpad:44,SharedRef:45,Sub:46,Timer:47,TQueue:48,UnManagedStruct:49,Version:50,;",128,0,0,0
.stabs 
"PMC:T(0,19)=s24obj:(0,20),0,128;vtable:*(0,22),128,32;pmc_ext:*(0,19),160,32;;",128,0,0,0
.stabs "pobj_t:T(0,20)=s16u:(0,21),0,64;flags:(0,12),64,32;;",128,0,0,0
.stabs "UnionVal:T(0,21)=u8int_val:(0,12),0,32;pmc_val:*(0,19),32,32;;",128,0,0,0
.stabs "VTABLE:T(0,22)=s8base_type:(0,18),32,32;;",128,0,0,0
.stabs "I0:S(0,12)",38,0,0,222590
.stabs "N0:S(0,13)",38,0,0,222610
.stabs "S0:S(0,16)",38,0,0,222710
.stabs "P0:S*(0,19)",38,0,0,222790
.stabs "I1:S(0,12)",38,0,0,222594
.stabs "N1:S(0,13)",38,0,0,222618
.stabs "S1:S(0,16)",38,0,0,222714
.stabs "P1:S*(0,19)",38,0,0,222794
.stabs "I2:S(0,12)",38,0,0,222598
.stabs "N2:S(0,13)",38,0,0,222620
.stabs "S2:S(0,16)",38,0,0,222718
.stabs "P2:S*(0,19)",38,0,0,222798
.stabs "I3:S(0,12)",38,0,0,22259c
.stabs "N3:S(0,13)",38,0,0,222628
.stabs "S3:S(0,16)",38,0,0,22271c
.stabs "P3:S*(0,19)",38,0,0,22279c
.stabs "I4:S(0,12)",38,0,0,2225a0
.stabs "N4:S(0,13)",38,0,0,222630
.stabs "S4:S(0,16)",38,0,0,222720
.stabs "P4:S*(0,19)",38,0,0,2227a0
.stabs "I5:S(0,12)",38,0,0,2225a4
.stabs "N5:S(0,13)",38,0,0,222638
.stabs "S5:S(0,16)",38,0,0,222724
.stabs "P5:S*(0,19)",38,0,0,2227a4
.stabs "I6:S(0,12)",38,0,0,2225a8
.stabs "N6:S(0,13)",38,0,0,222640
.stabs "S6:S(0,16)",38,0,0,222728
.stabs "P6:S*(0,19)",38,0,0,2227a8
.stabs "I7:S(0,12)",38,0,0,2225ac
.stabs "N7:S(0,13)",38,0,0,222648
.stabs "S7:S(0,16)",38,0,0,22272c
.stabs "P7:S*(0,19)",38,0,0,2227ac
.stabs "I8:S(0,12)",38,0,0,2225b0
.stabs "N8:S(0,13)",38,0,0,222650
.stabs "S8:S(0,16)",38,0,0,222730
.stabs "P8:S*(0,19)",38,0,0,2227b0
.stabs "I9:S(0,12)",38,0,0,2225b4
.stabs "N9:S(0,13)",38,0,0,222658
.stabs "S9:S(0,16)",38,0,0,222734
.stabs "P9:S*(0,19)",38,0,0,2227b4
.stabs "I10:S(0,12)",38,0,0,2225b8
.stabs "N10:S(0,13)",38,0,0,222660
.stabs "S10:S(0,16)",38,0,0,222738
.stabs "P10:S*(0,19)",38,0,0,2227b8
.stabs "I11:S(0,12)",38,0,0,2225bc
.stabs "N11:S(0,13)",38,0,0,222668
.stabs "S11:S(0,16)",38,0,0,22273c
.stabs "P11:S*(0,19)",38,0,0,2227bc
.stabs "I12:S(0,12)",38,0,0,2225c0
.stabs "N12:S(0,13)",38,0,0,222670
.stabs "S12:S(0,16)",38,0,0,222740
.stabs "P12:S*(0,19)",38,0,0,2227c0
.stabs "I13:S(0,12)",38,0,0,2225c4
.stabs "N13:S(0,13)",38,0,0,222678
.stabs "S13:S(0,16)",38,0,0,222744
.stabs "P13:S*(0,19)",38,0,0,2227c4
.stabs "I14:S(0,12)",38,0,0,2225c8
.stabs "N14:S(0,13)",38,0,0,222680
.stabs "S14:S(0,16)",38,0,0,222748
.stabs "P14:S*(0,19)",38,0,0,2227c8
.stabs "I15:S(0,12)",38,0,0,2225cc
.stabs "N15:S(0,13)",38,0,0,222688
.stabs "S15:S(0,16)",38,0,0,22274c
.stabs "P15:S*(0,19)",38,0,0,2227cc
.stabs "I16:S(0,12)",38,0,0,2225d0
.stabs "N16:S(0,13)",38,0,0,222690
.stabs "S16:S(0,16)",38,0,0,222750
.stabs "P16:S*(0,19)",38,0,0,2227d0
.stabs "I17:S(0,12)",38,0,0,2225d4
.stabs "N17:S(0,13)",38,0,0,222698
.stabs "S17:S(0,16)",38,0,0,222754
.stabs "P17:S*(0,19)",38,0,0,2227d4
.stabs "I18:S(0,12)",38,0,0,2225d8
.stabs "N18:S(0,13)",38,0,0,2226a0
.stabs "S18:S(0,16)",38,0,0,222758
.stabs "P18:S*(0,19)",38,0,0,2227d8
.stabs "I19:S(0,12)",38,0,0,2225dc
.stabs "N19:S(0,13)",38,0,0,2226a8
.stabs "S19:S(0,16)",38,0,0,22275c
.stabs "P19:S*(0,19)",38,0,0,2227dc
.stabs "I20:S(0,12)",38,0,0,2225e0
.stabs "N20:S(0,13)",38,0,0,2226b0
.stabs "S20:S(0,16)",38,0,0,222760
.stabs "P20:S*(0,19)",38,0,0,2227e0
.stabs "I21:S(0,12)",38,0,0,2225e4
.stabs "N21:S(0,13)",38,0,0,2226b8
.stabs "S21:S(0,16)",38,0,0,222764
.stabs "P21:S*(0,19)",38,0,0,2227e4
.stabs "I22:S(0,12)",38,0,0,2225e8
.stabs "N22:S(0,13)",38,0,0,2226c0
.stabs "S22:S(0,16)",38,0,0,222768
.stabs "P22:S*(0,19)",38,0,0,2227e8
.stabs "I23:S(0,12)",38,0,0,2225ec
.stabs "N23:S(0,13)",38,0,0,2226c8
.stabs "S23:S(0,16)",38,0,0,22276c
.stabs "P23:S*(0,19)",38,0,0,2227ec
.stabs "I24:S(0,12)",38,0,0,2225f0
.stabs "N24:S(0,13)",38,0,0,2226d0
.stabs "S24:S(0,16)",38,0,0,222770
.stabs "P24:S*(0,19)",38,0,0,2227f0
.stabs "I25:S(0,12)",38,0,0,2225f4
.stabs "N25:S(0,13)",38,0,0,2226d8
.stabs "S25:S(0,16)",38,0,0,222774
.stabs "P25:S*(0,19)",38,0,0,2227f4
.stabs "I26:S(0,12)",38,0,0,2225f8
.stabs "N26:S(0,13)",38,0,0,2226e0
.stabs "S26:S(0,16)",38,0,0,222778
.stabs "P26:S*(0,19)",38,0,0,2227f8
.stabs "I27:S(0,12)",38,0,0,2225fc
.stabs "N27:S(0,13)",38,0,0,2226e8
.stabs "S27:S(0,16)",38,0,0,22277c
.stabs "P27:S*(0,19)",38,0,0,2227fc
.stabs "I28:S(0,12)",38,0,0,222600
.stabs "N28:S(0,13)",38,0,0,2226f0
.stabs "S28:S(0,16)",38,0,0,222780
.stabs "P28:S*(0,19)",38,0,0,222800
.stabs "I29:S(0,12)",38,0,0,222604
.stabs "N29:S(0,13)",38,0,0,2226f8
.stabs "S29:S(0,16)",38,0,0,222784
.stabs "P29:S*(0,19)",38,0,0,222804
.stabs "I30:S(0,12)",38,0,0,222608
.stabs "N30:S(0,13)",38,0,0,222700
.stabs "S30:S(0,16)",38,0,0,222788
.stabs "P30:S*(0,19)",38,0,0,222808
.stabs "I31:S(0,12)",38,0,0,22260c
.stabs "N31:S(0,13)",38,0,0,222708
.stabs "S31:S(0,16)",38,0,0,22278c
.stabs "P31:S*(0,19)",38,0,0,22280c
.stabn 68,0,1,0
.stabn 68,0,1,40 /* set_i_ic */
.stabn 68,0,2,44 /* end */
.stabn 68,0,9,60 /* ret */
.stabs "",36,0,1,3c
> parrot -d -j set.pasm
*** Parrot VM: JIT core ***
*** Parrot VM: Setting up ARGV array in P5.  Current argc: 1 ***
        0: set.pasm
set.stabs.s: Assembler messages:
set.stabs.s:2: Warning: rest of line ignored; first ignored character is `1'
set.stabs.s:38: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:40: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:41: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:42: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:45: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:46: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:49: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:50: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:53: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:54: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:56: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:57: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:58: Error: backward ref to unknown label "2225:"
set.stabs.s:58: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:61: Error: backward ref to unknown label "2227:"
set.stabs.s:61: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:62: Error: backward ref to unknown label "2225:"
set.stabs.s:62: Warning: rest of line ignored; first ignored character is `4'
set.stabs.s:65: Error: backward ref to unknown label "2227:"
set.stabs.s:65: Warning: rest of line ignored; first ignored character is `4'
set.stabs.s:66: Error: backward ref to unknown label "2225:"
set.stabs.s:66: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:69: Error: backward ref to unknown label "2227:"
set.stabs.s:69: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:70: Error: backward ref to unknown label "2225:"
set.stabs.s:70: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:72: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:73: Error: backward ref to unknown label "2227:"
set.stabs.s:73: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:74: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:77: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:78: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:81: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:82: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:85: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:86: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:88: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:89: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:90: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:93: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:94: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:97: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:98: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:99: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:101: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:102: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:103: Warning: rest of line ignored; first ignored character is `a'
set.stabs.s:104: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:105: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:106: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:107: Error: backward ref to unknown label "2226:"
set.stabs.s:107: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:109: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:110: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:111: Error: backward ref to unknown label "2226:"
set.stabs.s:111: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:113: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:114: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:115: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:117: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:118: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:119: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:120: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:121: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:122: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:123: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:125: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:126: Warning: rest of line ignored; first ignored character is `4'
set.stabs.s:127: Warning: rest of line ignored; first ignored character is `d'
set.stabs.s:129: Warning: rest of line ignored; first ignored character is `4'
set.stabs.s:130: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:131: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:133: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:134: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:135: Warning: rest of line ignored; first ignored character is `e'
set.stabs.s:136: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:137: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:139: Warning: rest of line ignored; first ignored character is `0'
set.stabs.s:143: Warning: rest of line ignored; first ignored character is `8'
set.stabs.s:150: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:152: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:153: Warning: rest of line ignored; first ignored character is `c'
set.stabs.s:158: Warning: rest of line ignored; first ignored character is `c'
*** Parrot VM: Dumping GC info ***
Total memory allocated = 131072
DOD runs = 0
Collect runs = 0
Collect memory = 0
Active PMCs = 1024
Active buffers = 7168
Total PMCs = 1024
Total buffers = 7168
Header allocations since last collect = 8
Memory allocations since last collect = 0

Reply via email to