search for: kmhkmhx0

Displaying 3 results from an estimated 3 matches for "kmhkmhx0".

2017 Jan 24
5
Linking Linux kernel with LLD
...tigation, that seems will not work so simple. Next are possible examples where it will be broken: . = 0x1000; (gives tokens "0, x1000") . = A*10; (gives "A*10") . = 10k; (gives "10, k") . = 10*5; (gives "10, *5" "[0-9]+" could be "[0-9][kmhKMHx0-9]*" but for "10*5" that anyways gives "10" and "*5" tokens. And I do not think we can involve some handling of operators, as its hard to assume some context on tokenizing step. We do not know if that a file name we are parsing or a math expression. May be worth...
2017 Jan 27
2
Linking Linux kernel with LLD
...e possible examples where it will be broken: >> . = 0x1000; (gives tokens "0, x1000") >> . = A*10; (gives "A*10") >> . = 10k; (gives "10, k") >> . = 10*5; (gives "10, *5" >> >> "[0-9]+" could be "[0-9][kmhKMHx0-9]*" >> but for "10*5" that anyways gives "10" and "*5" tokens. >> And I do not think we can involve some handling of operators, >> as its hard to assume some context on tokenizing step. >> We do not know if that a file name we are parsing...
2017 Jan 23
2
Linking Linux kernel with LLD
Our tokenizer recognize [A-Za-z0-9_.$/\\~=+[]*?\-:!<>]+ as a token. gold uses more complex rules to tokenize. I don't think we need that much complex rules, but there seems to be room to improve our tokenizer. In particular, I believe we can parse the Linux's linker script by changing the tokenizer rules as follows.