All bugs related to new C backend
pjay
Enthusiast
Posts: 252 Joined: Thu Mar 30, 2006 11:14 am
Post
by pjay » Thu Sep 04, 2025 10:47 am
The code below generates a synthetic datasection containing string literals which fail to compile with the C backend, with either a compiler crash or syntax error.
Run the code below, ctrl + v to paste at the end of the code then uncomment one of the two Data lines to see the errors.
Code: Select all
l.s = "abcdefgh" : For x = 1 To 10 : l = l + l : Next : Debug Len(l)
err1.s = "; uncomment: 8192 chars causes compiler crash" + #LF$ + "; Data.s " + Chr(34) + l + Chr(34) + #LF$
err2.s = "; uncomment: Len > 4096 can also cause syntax error" + #LF$ + "; Data.s " + Chr(34) + Left(l, 4608) + Chr(34) + #LF$
SetClipboardText( "DataSection" + #LF$ + err1 + #LF$ + err2 + #LF$ + "EndDatasection" + #LF$)
juergenkulow2
New User
Posts: 2 Joined: Sat Jun 21, 2025 12:27 pm
Post
by juergenkulow2 » Sat Sep 06, 2025 9:34 am
Code: Select all
; Data code line length < 8192
Read.s s$
Debug s$
DataSection
Data.s "00150019002300270031003500390043004700510055005900630067007100750079008300870091009500990103010701110115011901230127013101350139014301470151015501590163016701710175017901830187019101950199020302070211021502190223022702310235023902430247025102550259026302670271027502790283028702910295029903030307031103150319032303270331033503390343034703510355035903630367037103750379038303870391039503990403040704110415041904230427043104350439044304470451045504590463046704710475047904830487049104950499050305070511051505190523052705310535053905430547055105550559056305670571057505790583058705910595059906030607061106150619062306270631063506390643064706510655065906630667067106750679068306870691069506990703070707110715071907230727073107350739074307470751075507590763076707710775077907830787079107950799080308070811081508190823082708310835083908430847085108550859086308670871087508790883088708910895089909030907091109150919092309270931093509390943094709510955095909630967097109750979098309870991099509991003100710111015101910231027103110351039104310471051105510591063106710711075107910831087109110951099110311071111111511191123112711311135113911431147115111551159116311671171117511791183118711911195119912031207121112151219122312271231123512391243124712511255125912631267127112751279128312871291129512991303130713111315131913231327133113351339134313471351135513591363136713711375137913831387139113951399140314071411141514191423142714311435143914431447145114551459146314671471147514791483148714911495149915031507151115151519152315271531153515391543154715511555155915631567157115751579158315871591159515991603160716111615161916231627163116351639164316471651165516591663166716711675167916831687169116951699170317071711171517191723172717311735173917431747175117551759176317671771177517791783178717911795179918031807181118151819182318271831183518391843184718511855185918631867187118751879188318871891189518991903190719111915191919231927193119351939194319471951195519591963196719711975197919831987199119951999200320072011201520192023202720312035203920432047205120552059206320672071207520792083208720912095209921032107211121152119212321272131213521392143214721512155215921632167217121752179218321872191219521992203220722112215221922232227223122352239224322472251225522592263226722712275227922832287229122952299230323072311231523192323232723312335233923432347235123552359236323672371237523792383238723912395239924032407241124152419242324272431243524392443244724512455245924632467247124752479248324872491249524992503250725112515251925232527253125352539254325472551255525592563256725712575257925832587259125952599260326072611261526192623262726312635263926432647265126552659266326672671267526792683268726912695269927032707271127152719272327272731273527392743274727512755275927632767277127752779278327872791279527992803280728112815281928232827283128352839284328472851285528592863286728712875287928832887289128952899290329072911291529192923292729312935293929432947295129552959296329672971297529792983298729912995299930033007301130153019302330273031303530393043304730513055305930633067307130753079308330873091309530993103310731113115311931233127313131353139314331473151315531593163316731713175317931833187319131953199320332073211321532193223322732313235323932433247325132553259326332673271327532793283328732913295329933033307331133153319332333273331333533393343334733513355335933633367337133753379338333873391339533993403340734113415341934233427343134353439344334473451345534593463346734713475347934833487349134953499350335073511351535193523352735313535353935433547355135553559356335673571357535793583358735913595359936033607361136153619362336273631363536393643364736513655365936633667367136753679368336873691369536993703370737113715371937233727373137353739374337473751375537593763376737713775377937833787379137953799380338073811381538193823382738313835383938433847385138553859386338673871387538793883388738913895389939033907391139153919392339273931393539393943394739513955395939633967397139753979398339873991399539994003400740114015401940234027403140354039404340474051405540594063406740714075407940834087409140954099410341074111411541194123412741314135413941434147415141554159416341674171417541794183418741914195419942034207421142154219422342274231423542394243424742514255425942634267427142754279428342874291429542994303430743114315431943234327433143354339434343474351435543594363436743714375437943834387439143954399440344074411441544194423442744314435443944434447445144554459446344674471447544794483448744914495449945034507451145154519452345274531453545394543454745514555455945634567457145754579458345874591459545994603460746114615461946234627463146354639464346474651465546594663466746714675467946834687469146954699470347074711471547194723472747314735473947434747475147554759476347674771477547794783478747914795479948034807481148154819482348274831483548394843484748514855485948634867487148754879488348874891489548994903490749114915491949234927493149354939494349474951495549594963496749714975497949834987499149954999500350075011501550195023502750315035503950435047505150555059506350675071507550795083508750915095509951035107511151155119512351275131513551395143514751515155515951635167517151755179518351875191519551995203520752115215521952235227523152355239524352475251525552595263526752715275527952835287529152955299530353075311531553195323532753315335533953435347535153555359536353675371537553795383538753915395539954035407541154155419542354275431543554395443544754515455545954635467547154755479548354875491549554995503550755115515551955235527553155355539554355475551555555595563556755715575557955835587559155955599560356075611561556195623562756315635563956435647565156555659566356675671567556795683568756915695569957035707571157155719572357275731573557395743574757515755575957635767577157755779578357875791579557995803580758115815581958235827583158355839584358475851585558595863586758715875587958835887589158955899590359075911591559195923592759315935593959435947595159555959596359675971597559795983598759915995599960036007601160156019602360276031603560396043604760516055605960636067607160756079608360876091609560996103610761116115611961236127613161356139614361476151615561596163616761716175617961836187619161956199620362076211621562196223622762316235623962436247625162556259626362676271627562796283628762916295629963036307631163156319632363276331633563396343634763516355635963636367637163756379638363876391639563996403640764116415641964236427643164356439644364476451645564596463646764716475647964836487649164956499650365076511651565196523652765316535653965436547655165556559656365676571657565796583658765916595659966036607661166156619662366276631663566396643664766516655665966636667667166756679668366876691669566996703670767116715671967236727673167356739674367476751675567596763676767716775677967836787679167956799680368076811681568196823682768316835683968436847685168556859686368676871687568796883688768916895689969036907691169156919692369276931693569396943694769516955695969636967697169756979698369876991699569997003700770117015701970237027703170357039704370477051705570597063706770717075707970837087709170957099710371077111711571197123712771317135713971437147715171557159716371677171717571797183718771917195719972037207721172157219722372277231723572397243724772517255725972637267727172757279728372877291729572997303730773117315731973237327733173357339734373477351735573597363736773717375737973837387739173957399740374077411741574197423742774317435743974437447745174557459746374677471747574797483748774917495749975037507751175157519752375277531753575397543754775517555755975637567757175757579758375877591759575997603760776117615761976237627763176357639764376477651765576597663766776717675767976837687769176957699770377077711771577197723772777317735773977437747775177557759776377677771777577797783778777917795779978037807781178157819782378277831783578397843784778517855785978637867787178757879788378877891789578997903790779117915791979237927793179357939794379477951795579597963796779717975797979837987799179957999800380078011801580198023802780318035803980438047805180558059806380678071807580798083808780918095809981038107811181158119812381278131813581398143814781518155815981638167817181758179818381878191"
EndDataSection
; [10:25:22] Warte auf den Start des Executable...
; [10:25:22] Executable-Typ: Linux - x64 (64bit, Unicode)
; [10:25:22] Executable gestartet.
; [10:25:22] Die Programmausführung ist abgeschlossen.
; C-Backend:
; [10:25:46] [COMPILER] Zeile 7: Syntax-Fehler.