irclog2html for #openjtag on 20060422

00:54.13*** join/#openjtag prpplague (n=dave@72.22.137.214)
00:59.53prpplagueany c guru's awake?
01:02.38AchiestDragonis that software by any chance
01:05.16prpplaguehehe yea
01:06.19key2prpplague: shot
01:07.09prpplagueran across the declaration of:
01:07.17prpplagueconst char foo[];
01:07.26prpplaguewhere before i had always used
01:07.34prpplagueconst char *foo;
01:08.02prpplaguenot sure what the difference is
01:08.12key2none
01:08.20key2almost
01:08.40prpplaguekey2: odd
01:08.48key2well there are no difference for me
01:08.53prpplaguekey2: 2.95.3 cross compile complete chokes on it
01:09.13key2how do u use it ?
01:09.20key2*foo is a pointer
01:09.24key2so foo is the adress
01:09.31key2and *foo the value
01:09.38key2but depends
01:10.05key2do u malloc it ?
01:10.08prpplaguekey2: used in a struct declaration
01:10.43prpplagueshort paste
01:10.45prpplague1
01:10.46prpplague2
01:10.47prpplague3
01:10.50prpplaguestruct env_link {
01:10.50prpplague<PROTECTED>
01:10.50prpplague<PROTECTED>
01:10.50prpplague<PROTECTED>
01:10.51prpplague<PROTECTED>
01:10.53prpplague<PROTECTED>
01:10.55prpplague<PROTECTED>
01:10.57prpplague<PROTECTED>
01:10.59prpplague};
01:11.17prpplaguei can change the const char region[]  to  const char *region
01:11.26prpplagueand it compiles clean with 2.95.3
01:12.56prpplaguetheir seems to be a thread on the LKML about the differences
01:13.05prpplaguebut i've not gone through it all yet
01:13.39key2and if u put const char *region; ?
01:14.17prpplagueit compiles and runs
01:14.35key2well that's normal
01:14.47*** join/#openjtag ka6sox (n=ka6sox@nslu2-linux/ka6sox)
01:14.54key2because in a struct const char region[] has no sense
01:14.59key2since u gotta maloc it
01:15.02key2it needs the pointer
01:15.18prpplaguei'm thinking that 3.x gcc is handling it differentl
01:15.19prpplaguey
01:15.24prpplaguetesting now
01:15.28key2in the declaration const char region[];
01:15.41key2region = something is wrong
01:15.57key2event tho &region would have returned the mem address
01:16.54key2prpplague: to confirm, test that: const char region[50];
01:16.58key2just to see if it complains
01:17.03prpplaguegotcha
01:17.28prpplaguekey2: yea looks like 3.3.2 builds it with not problem as const char region[]
01:18.35prpplaguekey2: 2.95.3 with region[50] builds clean
01:20.50prpplaguewell thats interesting
01:20.58prpplaguei'll have to do some more digging on that
01:21.06prpplaguekey2: thanks for the input
01:21.34prpplaguekey2: always nice to have some verify that you aren't insane ( or atleast slight losing your mind)
01:21.41prpplagues/some/someone
01:25.09key2prpplague: talking about me ? :)
01:26.35prpplaguehehe yea
02:53.46*** join/#openjtag vmaster_ (i=vmaster@p549B51F5.dip.t-dialin.net)
03:45.22*** join/#openjtag dot (n=ka6sox@netblock-68-183-62-135.dslextreme.com)
03:46.03*** join/#openjtag tking__ (n=ka6sox@netblock-68-183-62-135.dslextreme.com)
04:36.29*** join/#openjtag fishhead (n=d3200@c-67-165-88-141.hsd1.pa.comcast.net)
09:15.36*** join/#openjtag fishhead (n=d3200@c-67-165-88-141.hsd1.pa.comcast.net) [NETSPLIT VICTIM]
09:15.36*** join/#openjtag bullet (n=bullet@65.53.62.81.cust.bluewin.ch) [NETSPLIT VICTIM]
09:15.37*** join/#openjtag ka6sox-office (n=tking@nslu2-linux/ka6sox) [NETSPLIT VICTIM]
09:15.37*** join/#openjtag [g2] (n=Tom@nslu2-linux/g2)
09:20.13*** join/#openjtag fishhead- (n=d3200@c-67-165-88-141.hsd1.pa.comcast.net)
10:29.29vmaster_key2: regarding your discussion with prpplague last night:
10:29.45vmaster_in his case, region[] and region* are totally different
10:30.49vmaster_region[] declares a flexible-length array, and is defined since ISO-C99
10:31.05vmaster_on gcc 2.95.x he would have to change it to region[0]
10:31.57vmaster_in both cases, the struct looks like this in memory [magic][apex_start][apex_end][env_start][env_end][env_d_size][region.....
10:32.05vmaster_i.e. the region is directly concatenated to the struct
11:08.51key2vmaster: yep
11:11.46key2http://ronwarez.com/catcher/2006-04/29c958c6e9d3d7e729cdc4b0768a3c03.jpg
11:11.47key2lol
13:14.40*** join/#openjtag prpplague (n=dave@72.22.137.214)
17:23.40*** join/#openjtag key2 (n=key2@gob75-2-81-56-64-17.fbx.proxad.net)
17:48.24*** join/#openjtag vmaster (i=vmaster@p549B7906.dip.t-dialin.net)
17:55.18vmasterprpplague: did you solve your problems with the region[]?
17:56.09prpplaguevmaster: yes and no
17:56.30prpplaguevmaster: hehe,, apex hasn't been 2.95.3 compatible for awhile
17:56.40prpplaguevmaster: but i was just curious about that particular issue
17:56.50prpplaguevmaster: using the region[0] does seem to work
17:56.55vmasterheh, not sure if it's a bad thing being 2.95.3 incompatible
17:57.34vmasteryeah... 2.95.3 lacks support for flexible length arrays
17:57.42prpplaguevmaster: agreed, it was more of a "driving me nuts not knowing why" kind of thing
17:58.37AchiestDragonseems to think thats the objective of C
17:58.50prpplaguehehe
17:59.15prpplague@$%@$% its hot today
17:59.42vmasterpoor you :-P
17:59.57vmasterat least we had three sunny days at ~20C in a row
18:00.05prpplaguehehe
18:01.26AchiestDragona cool 15C here
18:01.49prpplaguevmaster: i never had any formal education in either the hardware or coding, so there are plenty of gaps in my udnerstanding of things
18:02.34AchiestDragonprpplague:  even if you had there is still always gaps
18:03.05prpplagueAchiestDragon: agreed
18:03.28prpplagueAchiestDragon: we hired a junior programmer at work, straight out of college
18:03.36prpplagueAchiestDragon: takes him forever to get something done
18:04.19prpplagueAchiestDragon: hehe, i think he forgets that we are business and time is money, he's too into doing "perfect code"
18:04.58prpplaguejust imho
18:05.39prpplaguebtw, if anyone is interested the arm720t based pixter multimedia is now selling for around $35 , even on ebay
18:06.59AchiestDragonyes , i started codeing using assembly , and i think if you do it that way you learn more about the system your programming and get to learn tricks that make the code compact
18:07.31AchiestDragonrather than have it include a full maths lib  just so you can add 2 numbers
18:07.54prpplagueAchiestDragon: my first language was BASIC, so i'm just screwed
18:08.15AchiestDragonits amazing what you can do in 1k in assembly
18:08.28prpplaguehehe yea
18:08.46prpplagueAchiestDragon: funny thing is i hear alot of people complain about arm asm, but i love it
18:09.01prpplagueAchiestDragon: i find it very logical
18:10.28AchiestDragonasm on risc cpus can have some odd rules , but understanding why can let you write verry efficiant and small code
18:11.04prpplaguei have got sooooo much work to do to apex
18:12.17AchiestDragonpersonaly i find C++ a pain , it never cut the mark and the sintax structure got overly complex , C was ok untill then
18:13.02prpplaguei still have some problems with OO
18:13.05prpplaguestuff
18:13.20AchiestDragoni can read and  understand most c and c++ code  but find it dificult to write code in it
18:14.10AchiestDragoni find writing in python easyer , and it seems just as effective
18:14.37prpplaguehehe
18:15.26prpplagueAchiestDragon: i've been hacking and tweaking kernel code for years now, but i'm just now feel comfortable to writing kernel drivers from scratch
18:15.49AchiestDragonkool
18:15.53AchiestDragonbbl
18:16.33AchiestDragonprgram just starting on tv ,,, dr who   compulsary tv viewing
18:19.12*** join/#openjtag ka6sox (n=ka6sox@nslu2-linux/ka6sox)
18:50.09*** join/#openjtag dwery (n=dwery@nslu2-linux/dwery)
20:58.24*** join/#openjtag bullet (n=bullet@117-180.0-85.cust.bluewin.ch)
23:02.56*** join/#openjtag prpplague (n=dave@72.22.137.214)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.